Added macro DEFAULT_UNREACHABLE.
authorPatrik Stridvall <ps@leissner.se>
Fri, 27 Feb 2004 21:25:12 +0000 (21:25 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 27 Feb 2004 21:25:12 +0000 (21:25 +0000)
include/winnt.h

index 2ae708f6aed459a7cced8e5e7ed26586ff47eff4..a4ec815821b6655d9367c2c8b70ba422d964c021 100644 (file)
 # define C_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1]
 #endif
 
+/* Eliminate Microsoft C/C++ compiler warning 4715 */
+#if (_MSC_VER > 1200)
+# define DEFAULT_UNREACHABLE default: __assume(0)
+#else
+# define DEFAULT_UNREACHABLE
+#endif
+
 /* Error Masks */
 #define APPLICATION_ERROR_MASK       0x20000000
 #define ERROR_SEVERITY_SUCCESS       0x00000000