X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b7f2165565bb33b149baf1272e28f9a61d579d3..438e3558adf77a68f56b6e4d30b359f8361facac:/src/msw/dcprint.cpp?ds=inline diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 8105eec441..1fabf5e6df 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -32,6 +32,7 @@ #include "wx/string.h" #include "wx/log.h" #include "wx/window.h" + #include "wx/dcmemory.h" #endif #include "wx/msw/private.h" @@ -46,9 +47,16 @@ #include #endif +// mingw32 defines GDI_ERROR incorrectly +#ifdef __GNUWIN32__ + #undef GDI_ERROR + #define GDI_ERROR ((int)-1) +#endif + // ---------------------------------------------------------------------------- // wxWin macros // ---------------------------------------------------------------------------- + IMPLEMENT_CLASS(wxPrinterDC, wxDC) // ============================================================================