X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b7f2165565bb33b149baf1272e28f9a61d579d3..39d03faf4e69613abaa9b426946540c0939e3053:/src/msw/dcprint.cpp diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 8105eec441..c39d15dc3f 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) // ============================================================================ @@ -407,6 +415,11 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst) // wxPrinterDC bit blitting/bitmap drawing // ---------------------------------------------------------------------------- +// Win16 doesn't define GDI_ERROR. +#ifndef GDI_ERROR +#define GDI_ERROR -1 +#endif + void wxPrinterDC::DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask)