From 16c0096fefc9be2a952beefc79a137931a394dee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 8 Apr 2012 18:10:11 +0000 Subject: [PATCH] Compilation fixes for Cairo-based wxGraphicsContext code under MSW. Include MSW-specific headers under MSW to fix various compilation problems under MinGW. Closes #14194. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cairo.cpp | 4 ++++ src/generic/graphicc.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/common/cairo.cpp b/src/common/cairo.cpp index 871e320b05..46d649c9f1 100644 --- a/src/common/cairo.cpp +++ b/src/common/cairo.cpp @@ -25,6 +25,10 @@ #if wxUSE_CAIRO +#ifdef __WXMSW__ +#include "wx/msw/wrapwin.h" +#endif + #ifdef __WXMAC__ #include "wx/osx/private.h" #include diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 76efcf4b2a..ec4830837f 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -81,6 +81,9 @@ using namespace std; #ifdef __WXMSW__ #include +// We must do this as cairo-win32.h includes windows.h which pollutes the +// global name space with macros. +#include "wx/msw/winundef.h" #endif #ifdef __WXMAC__ -- 2.45.2