[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()
This commit is contained in:
Timo Kreuzer 2022-07-17 11:34:27 +02:00
parent 8d520f3c27
commit 2881b77302
2 changed files with 1 additions and 2 deletions

View file

@ -1,5 +1,6 @@
add_definitions(
-D_BLDR_
-D_NTSYSTEM_
-DNASSERT)

View file

@ -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_