From a4941ce4961f254ac31e2cef6dd0863866246bab Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 21 Aug 2012 15:31:16 +0100 Subject: [PATCH] hw/xwin: Wrap 'Status' when including ddraw.h Status is #defined as an alias for a type in xkbsrv.h, which conflicts with it's use as a parameter name in rpcdce.h This fixes compilation with MinGW-w64 w32api headers (The MinGW-w64 w32api headers actually provide a ddraw.h, so this fix tries to do things in a way which will still work if our private copy of ddraw.h is eventually removed) Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winms.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwin/winms.h b/hw/xwin/winms.h index 4355baeb8..5282fc982 100644 --- a/hw/xwin/winms.h +++ b/hw/xwin/winms.h @@ -42,7 +42,11 @@ #include #include +#pragma push_macro("Status") +#undef Status +#define Status wStatus #include "ddraw.h" +#pragma pop_macro("Status") #undef CreateWindow