Gerald Pfeifer : include: Fix preprocessor use of _MSC_VER.

Alexandre Julliard julliard at winehq.org
Mon Nov 23 08:49:49 CST 2009


Module: wine
Branch: master
Commit: 2ad4439d517e8da509b09b3cc15eab95712f9833
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2ad4439d517e8da509b09b3cc15eab95712f9833

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri Nov 20 22:08:43 2009 +0100

include: Fix preprocessor use of _MSC_VER.

---

 include/winnt.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index a77a607..222af22 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -296,7 +296,7 @@ extern "C" {
 #endif
 
 /* Eliminate Microsoft C/C++ compiler warning 4715 */
-#if (_MSC_VER > 1200)
+#if defined(_MSC_VER) && (_MSC_VER > 1200)
 # define DEFAULT_UNREACHABLE default: __assume(0)
 #else
 # define DEFAULT_UNREACHABLE




More information about the wine-cvs mailing list