#undefine NOMINMAX before #defining it

Prevents warnings about #redefining previously #defined macros

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9869 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2010-02-19 16:51:12 +00:00 committed by Git SVN Gateway
parent 384e87976d
commit 60c55e4009
1 changed files with 2 additions and 1 deletions

View File

@ -533,7 +533,8 @@
# define WIN32_LEAN_AND_MEAN
# define WIN32_EXTRA_LEAN
# define NOMINMAX // disable the min / max macros
# undef NOMINMAX
# define NOMINMAX 1 // disable the min / max macros
# include <windows.h>
# if defined(WZ_CC_MSVC)