Work around missing min/max in Windows headers

Windows headers assume min/max to be macros, but we set NOMINMAX to hide
the macro definitions. This pulls in an alternative implementation.
This commit is contained in:
Simon Richter 2018-10-31 21:32:41 +01:00 committed by Wayne Stambaugh
parent bed70339b8
commit 884ae5a7ff
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@
#include <wx/dcmemory.h>
#include <wx/dcprint.h>
#ifdef NOMINMAX /* workaround for gdiplus.h */
#include <algorithm>
using std::min;
using std::max;
#endif
#ifdef __WXMSW__
#include <windows.h>
#include <gdiplus.h>