diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index b102cb37e4..af4b26722e 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -54,6 +54,15 @@ #include #endif +// Define REAL_MAX, REAL_MIN +// if it isn't done in GDI+ header(s). +#ifndef REAL_MAX + #define REAL_MAX FLT_MAX +#endif // REAL_MAX +#ifndef REAL_MIN + #define REAL_MIN FLT_MIN +#endif // REAL_MIN + namespace {