From 0d30db33e168107a8f03c3c1c5aacf68018e3089 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 28 Nov 2015 22:42:48 +0100 Subject: [PATCH] Fix build failures on some platforms after 7be75892. Add header files to have full declarations of wxMemoryDC and wxMetafileDC which are apparently necessary on some platforms for wxDynamicCast. --- src/propgrid/advprops.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 8ba51c7bee..1896c4284c 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -75,6 +75,10 @@ #if wxPG_USE_GC_FOR_ALPHA #include "wx/dcgraph.h" +#include "wx/dcmemory.h" // for wxDynamicCast purposes +#if wxUSE_METAFILE + #include "wx/metafile.h" // for wxDynamicCast purposes +#endif // wxUSE_METAFILE #endif // wxPG_USE_GC_FOR_ALPHA // -----------------------------------------------------------------------