mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[XDK][DDK] Take the gcc path for __assert_annotation{A,W} and __CREATE_NTOS_DATA_IMPORT_ALIAS when compiling with clang-cl. Include kdfuncs.h before rtlfuncs.h to have DbgPrint() defined before using it. CORE-11799 (#94)
This commit is contained in:
parent
a75904fe66
commit
9556390f8f
2 changed files with 3 additions and 3 deletions
|
@ -3200,7 +3200,7 @@ RtlCheckBit(
|
|||
#define RtlUlongByteSwap(_x) _byteswap_ulong((_x))
|
||||
#define RtlUlonglongByteSwap(_x) _byteswap_uint64((_x))
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
# define __assert_annotationA(msg) __annotation(L"Debug", L"AssertFail", L ## msg)
|
||||
# define __assert_annotationW(msg) __annotation(L"Debug", L"AssertFail", msg)
|
||||
#else
|
||||
|
|
|
@ -150,7 +150,7 @@ $define(USHORT=USHORT)
|
|||
#define __IMPORTSYMBOL(_Name) "__imp_"#_Name
|
||||
#define __IMPORTNAME(_Name) __imp_##_Name
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#define __CREATE_NTOS_DATA_IMPORT_ALIAS(_Name) \
|
||||
__pragma(comment(linker, "/alternatename:"__SYMBOL(_Name) "=" __IMPORTSYMBOL(_Name)))
|
||||
#else /* !_MSC_VER */
|
||||
|
@ -251,6 +251,7 @@ $include (obtypes.h)
|
|||
$include (pstypes.h)
|
||||
$include (wmitypes.h)
|
||||
|
||||
$include (kdfuncs.h)
|
||||
$include (kefuncs.h)
|
||||
$include (rtlfuncs.h)
|
||||
$include (mmfuncs.h)
|
||||
|
@ -262,7 +263,6 @@ $include (exfuncs.h)
|
|||
$include (obfuncs.h)
|
||||
$include (psfuncs.h)
|
||||
$include (wmifuncs.h)
|
||||
$include (kdfuncs.h)
|
||||
$include (halfuncs.h)
|
||||
$include (nttmapi.h)
|
||||
$include (zwfuncs.h)
|
||||
|
|
Loading…
Reference in a new issue