From 3bcb0be2bba8dcfff31b267a3829b2473e38e9c4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 8 Nov 2011 11:02:07 +0000 Subject: [PATCH] Don't include wx/msw/wrapgdip.h if !wxUSE_GRAPHICS_CONTEXT. Fix compilation when GDI+ headers are not available by not including the header that includes in this case. Closes #13640. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/nonownedwnd.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/msw/nonownedwnd.cpp b/src/msw/nonownedwnd.cpp index 04340b0a58..09f5ec0f8e 100644 --- a/src/msw/nonownedwnd.cpp +++ b/src/msw/nonownedwnd.cpp @@ -35,8 +35,11 @@ #include "wx/nonownedwnd.h" -#include "wx/msw/wrapgdip.h" -#include "wx/graphics.h" +#if wxUSE_GRAPHICS_CONTEXT + #include "wx/msw/wrapgdip.h" + #include "wx/graphics.h" +#endif // wxUSE_GRAPHICS_CONTEXT + #include "wx/scopedptr.h" // ============================================================================ -- 2.45.2