[NDK]: Guard the Bitmap API prototypes in a NTOS_MODE_USER, so that a driver that...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 4 May 2017 16:12:52 +0000 (16:12 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 4 May 2017 16:12:52 +0000 (16:12 +0000)
This in particular fixes compilation under x64 due to the fact that, in x64, one of these API is declared (force)inline and the compiler complained that this function already had a body.

svn path=/trunk/; revision=74477

reactos/sdk/include/ndk/rtlfuncs.h

index 9f7f5e5..9878369 100644 (file)
@@ -3202,6 +3202,8 @@ RtlQueryProcessDebugInformation(
 //
 // Bitmap Functions
 //
+#ifdef NTOS_MODE_USER
+
 NTSYSAPI
 BOOLEAN
 NTAPI
@@ -3421,6 +3423,9 @@ RtlCheckBit(
 #define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP)/32]) >> ((BP)%32)) & 0x1)
 #endif /* defined(_M_AMD64) */
 
+#endif // NTOS_MODE_USER
+
+
 //
 // Timer Functions
 //