mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS] Don't define _IN_KERNEL_ globally for the kernel, but just where it's needed: when including regstr.h.
This commit is contained in:
parent
551d28e09f
commit
b414e1e4d7
2 changed files with 4 additions and 1 deletions
|
@ -58,9 +58,13 @@
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
#include <ndk/sefuncs.h>
|
#include <ndk/sefuncs.h>
|
||||||
#include <ndk/vftypes.h>
|
#include <ndk/vftypes.h>
|
||||||
|
|
||||||
#undef TEXT
|
#undef TEXT
|
||||||
#define TEXT(s) L##s
|
#define TEXT(s) L##s
|
||||||
|
|
||||||
|
#define _IN_KERNEL_
|
||||||
#include <regstr.h>
|
#include <regstr.h>
|
||||||
|
|
||||||
#include <ntstrsafe.h>
|
#include <ntstrsafe.h>
|
||||||
#include <ntpoapi.h>
|
#include <ntpoapi.h>
|
||||||
#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
|
#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
|
||||||
|
|
|
@ -11,7 +11,6 @@ include_directories(
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-D_NTOSKRNL_
|
-D_NTOSKRNL_
|
||||||
-D_NTSYSTEM_
|
-D_NTSYSTEM_
|
||||||
-D_IN_KERNEL_
|
|
||||||
-DNTDDI_VERSION=0x05020400)
|
-DNTDDI_VERSION=0x05020400)
|
||||||
|
|
||||||
if(NOT DEFINED NEWCC)
|
if(NOT DEFINED NEWCC)
|
||||||
|
|
Loading…
Reference in a new issue