Author: hbelusca Date: Thu May 4 16:12:52 2017 New Revision: 74477
URL: http://svn.reactos.org/svn/reactos?rev=74477&view=rev Log: [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.
Modified: trunk/reactos/sdk/include/ndk/rtlfuncs.h
Modified: trunk/reactos/sdk/include/ndk/rtlfuncs.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/rtlfuncs.h?... ============================================================================== --- trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] (original) +++ trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] Thu May 4 16:12:52 2017 @@ -3202,6 +3202,8 @@ // // Bitmap Functions // +#ifdef NTOS_MODE_USER + NTSYSAPI BOOLEAN NTAPI @@ -3420,6 +3422,9 @@ #else #define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP)/32]) >> ((BP)%32)) & 0x1) #endif /* defined(_M_AMD64) */ + +#endif // NTOS_MODE_USER +
// // Timer Functions