From 6cdaad13bdfd5dca8cce7b88c146162d818df1fe 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 16:52:19 +0100 Subject: [PATCH] Add missing OEMRESOURCE for using the OBM_, OIC_, OCR_ defines from winuser.h Fix build by commit 072965eb0 for modules: EXPLORER, COMCTL32, IERNONCE, URLMON, USER32_(API|WINE)TESTS Note that some of these modules (from Wine) already have the OEMRESOURCE defined; however, only in one of their files. But we have added precompiled headers for them where we have included either windows.h or winuser.h in them, without OEMRESOURCE. The result is, that when compiling these modules with PCH support, the OEMRESOURCE define was _not_ satisfied and thus, compile errors arose. Fix this by adding #define OEMRESOURCE before the windows headers also in the precompiled headers we have added for these modules. --- base/shell/explorer/precomp.h | 1 + dll/win32/comctl32/precomp.h | 1 + dll/win32/iernonce/iernonce.h | 2 ++ dll/win32/urlmon/precomp.h | 1 + modules/rostests/apitests/user32/precomp.h | 2 ++ modules/rostests/winetests/user32/precomp.h | 2 ++ 6 files changed, 9 insertions(+) diff --git a/base/shell/explorer/precomp.h b/base/shell/explorer/precomp.h index c9693ec04f1..ecc36caa9c6 100644 --- a/base/shell/explorer/precomp.h +++ b/base/shell/explorer/precomp.h @@ -17,6 +17,7 @@ #define COM_NO_WINDOWS_H #define COBJMACROS +#define OEMRESOURCE #include #include diff --git a/dll/win32/comctl32/precomp.h b/dll/win32/comctl32/precomp.h index 05f7b082dc6..374ab19fa02 100644 --- a/dll/win32/comctl32/precomp.h +++ b/dll/win32/comctl32/precomp.h @@ -12,6 +12,7 @@ #define COBJMACROS #define NONAMELESSUNION #define NONAMELESSSTRUCT +#define OEMRESOURCE #include "comctl32.h" diff --git a/dll/win32/iernonce/iernonce.h b/dll/win32/iernonce/iernonce.h index 5c46ed85cc5..2de557e644c 100644 --- a/dll/win32/iernonce/iernonce.h +++ b/dll/win32/iernonce/iernonce.h @@ -11,6 +11,8 @@ #include #define WIN32_NO_STATUS +#define OEMRESOURCE // For OBM_MNARROW + #include #include #include diff --git a/dll/win32/urlmon/precomp.h b/dll/win32/urlmon/precomp.h index 544651e310d..814f061f619 100644 --- a/dll/win32/urlmon/precomp.h +++ b/dll/win32/urlmon/precomp.h @@ -8,6 +8,7 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT +#define OEMRESOURCE #include "urlmon_main.h" diff --git a/modules/rostests/apitests/user32/precomp.h b/modules/rostests/apitests/user32/precomp.h index 9159e4bd588..29a986cd42f 100644 --- a/modules/rostests/apitests/user32/precomp.h +++ b/modules/rostests/apitests/user32/precomp.h @@ -8,6 +8,8 @@ #define COM_NO_WINDOWS_H #define WIN32_NO_STATUS +#define OEMRESOURCE + #include #include #include diff --git a/modules/rostests/winetests/user32/precomp.h b/modules/rostests/winetests/user32/precomp.h index a379831662e..a108fd0c49f 100644 --- a/modules/rostests/winetests/user32/precomp.h +++ b/modules/rostests/winetests/user32/precomp.h @@ -8,6 +8,8 @@ #define STRICT #define WINE_NOWINSOCK +#define OEMRESOURCE + #include #define WINE_NO_INLINE_RECT