From 6ddfe7e5dd96473f5a8b35dd4eab64dcc3607893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 22 Nov 2023 15:23:37 +0100 Subject: [PATCH] [WIN32K] Re-order some of the includes in pch.h First the C headers, then the DDK followed by the Win32 PSDK ones, only then the NDK headers, and finally the rest. --- win32ss/pch.h | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/win32ss/pch.h b/win32ss/pch.h index d72708658f0..cf06876ac54 100644 --- a/win32ss/pch.h +++ b/win32ss/pch.h @@ -14,25 +14,23 @@ #define _NO_COM #define STRICT -/* DDK/NDK/SDK headers */ +/* C headers */ +#include +#define _USE_MATH_DEFINES +#include +#include + +/* DDK headers */ #undef NTDDI_VERSION #define NTDDI_VERSION NTDDI_WS03SP1 #include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include #include -#include -/* Win32 headers */ +/* Win32 PSDK headers */ /* FIXME: Defines in winbase.h that we need... */ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; #define MAKEINTATOM(i) (LPWSTR)((ULONG_PTR)((WORD)(i))) @@ -40,11 +38,7 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; #define STARTF_USESHOWWINDOW 1 #define STARTF_USESIZE 2 #define STARTF_USEPOSITION 4 -#include #include -#define _USE_MATH_DEFINES -#include -#include // Needed because windef.h messes up CDECL for whatever #undef CDECL @@ -64,13 +58,24 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; #define NT_BUILD_ENVIRONMENT #define _ENGINE_EXPORT_ #include +#define OEMRESOURCE #include #include #define _NOCSECT_TYPE #include #include #include -#include + +/* NDK headers */ +#include +#include +#include +#include +#include +#include +#include +#include +#include /* SEH support with PSEH */ #include