From 2b114d6a516ee584ff89b96b12acf91799b6d677 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 20 Mar 2015 14:29:58 +0000 Subject: [PATCH] hw/xnest: Fix build for MinGW Include the wrapped windows.h via X11/Xwindows.h before xcb_keysyms.h to avoid type clashes caused by the unwrapped windows.h that includes. Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xnest/Keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xnest/Keyboard.c b/hw/xnest/Keyboard.c index ee3f68e3f..ae8375ee3 100644 --- a/hw/xnest/Keyboard.c +++ b/hw/xnest/Keyboard.c @@ -16,6 +16,10 @@ is" without express or implied warranty. #include #endif +#ifdef WIN32 +#include +#endif + #include #include #include