From: Hermès Bélusca-Maïto Date: Thu, 4 May 2017 16:12:52 +0000 (+0000) Subject: [NDK]: Guard the Bitmap API prototypes in a NTOS_MODE_USER, so that a driver that... X-Git-Tag: ReactOS-0.4.6~763 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=720092b8e7de441132c69658ab28dbf5e36a4545 [NDK]: Guard the Bitmap API prototypes in a NTOS_MODE_USER, so that a driver that includes both wdm.h and ndk/rtlfuncs.h for whatever reason does not include twice the bitmap API. 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 --- diff --git a/reactos/sdk/include/ndk/rtlfuncs.h b/reactos/sdk/include/ndk/rtlfuncs.h index 9f7f5e5897a..9878369ec2b 100644 --- a/reactos/sdk/include/ndk/rtlfuncs.h +++ b/reactos/sdk/include/ndk/rtlfuncs.h @@ -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 //