From 92557dad1c26c70136f86132ded51433aedc20ac Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 21 Aug 2016 23:44:59 +0200 Subject: [PATCH] Define REAL_MIN, REAL_MAX if GDI+ headers don't do it This should fix compilation with MinGW. --- src/msw/graphics.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 {