From deb162fc5a5aefdd73a6c05a29ecd8a272cfdf7b Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 20 Apr 2016 22:03:37 +0200 Subject: [PATCH] Fixes for PCH-less build for Direct2D graphics context. Include the required headers inside "#ifndef WX_PRECOMP" block. See #17502. --- src/msw/graphicsd2d.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index 34082a7d6f..97fd265f5b 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -57,18 +57,22 @@ #pragma hdrstop #endif +#ifndef WX_PRECOMP + #include "wx/dc.h" + #include "wx/dcclient.h" + #include "wx/dcmemory.h" + #include "wx/image.h" + #include "wx/module.h" + #include "wx/window.h" + #include "wx/msw/private.h" +#endif // WX_PRECOMP + #include "wx/graphics.h" -#include "wx/dc.h" -#include "wx/dcclient.h" -#include "wx/dcmemory.h" #include "wx/dynlib.h" -#include "wx/image.h" -#include "wx/module.h" #include "wx/msw/private/comptr.h" #include "wx/private/graphics.h" #include "wx/stack.h" #include "wx/sharedptr.h" -#include "wx/window.h" // This must be the last header included to only affect the DEFINE_GUID() // occurrences below but not any GUIDs declared in the standard files included