From 87db0af5db219840c20d56b9da253d8f992a200b Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 28 Sep 2009 17:45:23 +0000 Subject: [PATCH] Hey Arch, how do you expect kernel32 to build with Microsoft's headers if you define a NTDDI_VERSION that conflicts with _WIN32_WINNT and makes sdkddkver.h cry? Remove the conflicting define from the .rbuild and redefine it in the header before including the NDK (this is needed because we need Vista types from the PSDK but require 2003 types from the NDK -- glorious, eh?). Prepare sddkver.h for mingw-w64 import: - Point out the fact that the header is in the public domain. - Add some missing stuff, including a NTDDI_VERSION sanity check. - Format fixes, add some comments svn path=/trunk/; revision=43205 --- reactos/dll/win32/kernel32/k32.h | 10 +++-- reactos/dll/win32/kernel32/kernel32.rbuild | 1 - reactos/include/psdk/sdkddkver.h | 50 ++++++++++++++++++++-- 3 files changed, 53 insertions(+), 8 deletions(-) diff --git a/reactos/dll/win32/kernel32/k32.h b/reactos/dll/win32/kernel32/k32.h index a47f9666a7f..d7bbd038852 100755 --- a/reactos/dll/win32/kernel32/k32.h +++ b/reactos/dll/win32/kernel32/k32.h @@ -16,12 +16,16 @@ #include #include -#ifdef __GNUC__ -#include "intrin.h" -#endif +/* Redefine NTDDI_VERSION to 2K3 SP1 to get correct NDK definitions */ +#undef NTDDI_VERSION +#define NTDDI_VERSION NTDDI_WS03SP1 #include + +#undef NTDDI_WS03SP1 + + /* CSRSS Header */ #include diff --git a/reactos/dll/win32/kernel32/kernel32.rbuild b/reactos/dll/win32/kernel32/kernel32.rbuild index 100eff7205a..ec4f0699f41 100644 --- a/reactos/dll/win32/kernel32/kernel32.rbuild +++ b/reactos/dll/win32/kernel32/kernel32.rbuild @@ -13,7 +13,6 @@ 0x0600 - 0x05020100 errcodes