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:
parent
46ab541444
commit
3af4e1c5b0
|
@ -37,6 +37,7 @@ if(WIN32)
|
||||||
-DWIN32=1
|
-DWIN32=1
|
||||||
-DWIN32_LEAN_AND_MEAN=1
|
-DWIN32_LEAN_AND_MEAN=1
|
||||||
-DUNICODE
|
-DUNICODE
|
||||||
|
-DNOMINMAX
|
||||||
-D_UNICODE)
|
-D_UNICODE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user