https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2881b773020525536b0b5…
commit 2881b773020525536b0b5e2fec3a63a291313367
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Jul 17 11:34:27 2022 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Wed Jul 20 20:36:22 2022 +0200
[CMLIB] Don't redefine PAGED_CODE() to nothing in cmlib.h except for cmlib_host
This header is included by ntoskrnl which effectively disabled all PAGED_CODE checks
since 2015. Thanks Alex.
Instead define _BLDR_ when building cmlib, which will avoid trying to import
KeGetCurrentIrql()
---
sdk/lib/cmlib/CMakeLists.txt | 1 +
sdk/lib/cmlib/cmlib.h | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/sdk/lib/cmlib/CMakeLists.txt b/sdk/lib/cmlib/CMakeLists.txt
index d69202ba12d..bcd2b6b5142 100644
--- a/sdk/lib/cmlib/CMakeLists.txt
+++ b/sdk/lib/cmlib/CMakeLists.txt
@@ -1,5 +1,6 @@
add_definitions(
+ -D_BLDR_
-D_NTSYSTEM_
-DNASSERT)
diff --git a/sdk/lib/cmlib/cmlib.h b/sdk/lib/cmlib/cmlib.h
index d1b8c0656fe..fd6de8c75db 100644
--- a/sdk/lib/cmlib/cmlib.h
+++ b/sdk/lib/cmlib/cmlib.h
@@ -172,8 +172,6 @@
#include <ntdef.h>
#include <ntifs.h>
#include <bugcodes.h>
- #undef PAGED_CODE
- #define PAGED_CODE()
/* Prevent inclusion of Windows headers through <wine/unicode.h> */
#define _WINDEF_