[CMLIB][MKHIVE]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 28 Mar 2014 01:05:55 +0000 (01:05 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 28 Mar 2014 01:05:55 +0000 (01:05 +0000)
(For host tools compilation only)
Refine the #ifndefs, because SAL v2 annotations do not exist in MSVC < 2010.

svn path=/trunk/; revision=62571

reactos/lib/cmlib/cmlib.h
reactos/tools/mkhive/mkhive.h

index 4ea82bc..d1b7af8 100644 (file)
@@ -23,7 +23,7 @@
     #define strcasecmp _stricmp
     #endif//_WIN32
 
-    #ifndef _MSC_VER
+    #if (!defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1600)))
     #define _In_
     #define _Out_
     #define _Inout_
index ecb4463..293a464 100644 (file)
@@ -130,12 +130,13 @@ extern LIST_ENTRY CmiHiveListHead;
 #define min(a, b)  (((a) < (b)) ? (a) : (b))
 #endif
 
-#ifndef _MSC_VER
+#if (!defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1600)))
 #define _In_
 #define _Out_
 #define _In_opt_
 #define _In_range_(x, y)
 #endif
+
 #define __drv_aliasesMem
 
 /* EOF */