Skip to content

Commit cfbb734

Browse files
committed
[NTOS] Remove ROS-specific __NTOSKRNL__
See https://reactos.org/archives/public/ros-kernel/2004-June/003878.html > In the source files one set of headers is included if __NTDLL__ is defines and onother set if __NTOSKRNL__ is defines (dirty workaround for our messy headers).
1 parent 11d3e32 commit cfbb734

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ntoskrnl/include/internal/kd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ KdPortPutByteEx(
2828
);
2929

3030
/* SYMBOL ROUTINES **********************************************************/
31-
#ifdef __NTOSKRNL__
31+
32+
#ifdef _NTOSKRNL_
3233

3334
#ifdef KDBG
3435
# define KdbInit() KdbpCliInit()

ntoskrnl/ntos.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ include_directories(
99
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
1010

1111
add_definitions(
12-
-D__NTOSKRNL__
1312
-D_NTOSKRNL_
1413
-D_NTSYSTEM_
1514
-D_IN_KERNEL_

sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
remove_definitions(-D_WIN32_WINNT=0x502)
22
add_definitions(-D_WIN32_WINNT=0x600)
33

4-
add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -D_NTSYSTEM_)
4+
add_definitions(-DUNICODE -D_UNICODE -D_NTOSKRNL_ -D_NTSYSTEM_)
55

66
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/rtl)
77

sdk/lib/drivers/rtlver/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -D_NTSYSTEM_)
1+
add_definitions(-DUNICODE -D_UNICODE -D_NTOSKRNL_ -D_NTSYSTEM_)
22

33
list(APPEND SOURCE
44
rtl.c)

0 commit comments

Comments
 (0)