From b27756dbe6a1be4633ec47a8fe92a4c217f68f93 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Sun, 11 Aug 2013 12:15:11 +0100 Subject: [PATCH] hw/xwin: Fix inclusion of shlobj.h in MinGW64 build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build with latest MinGW64 headers by wrapping Status type in shlobj.h as well In file included from InitOutput.c:51:0: /usr/i686-w64-mingw32/sys-root/mingw/include/shlobj.h:1231:44: error: expected identifier or ‘(’ before ‘int’ /usr/i686-w64-mingw32/sys-root/mingw/include/shlobj.h:1248:44: error: expected identifier or ‘(’ before ‘int’ Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison Reviewed-by: Marc Haesen --- hw/xwin/InitOutput.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index d6b5e4fd9..b05ca2736 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -48,7 +48,11 @@ from The Open Group. #include "xkbsrv.h" #endif #ifdef RELOCATE_PROJECTROOT +#pragma push_macro("Status") +#undef Status +#define Status wStatus #include +#pragma pop_macro("Status") typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner, int nFolder, HANDLE hToken,