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:
parent
bed70339b8
commit
884ae5a7ff
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue