Define NOMINMAX for Windows builds.

Without #define NOMINMAX, <windows.h> defines min and max as macros,
which shadows the definitions from <algorithm> and makes them
unusable with multiple arguments.
This commit is contained in:
EvilSpirit 2016-01-26 12:18:56 +06:00 committed by whitequark
parent 46ab541444
commit 3af4e1c5b0

View File

@ -37,6 +37,7 @@ if(WIN32)
-DWIN32=1
-DWIN32_LEAN_AND_MEAN=1
-DUNICODE
-DNOMINMAX
-D_UNICODE)
endif()