Browse Source

dtoolbase: fix NOMINMAX macro redefinition warning

Younguk Kim 7 years ago
parent
commit
d6efceb1ed
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolbase/dtoolbase.h

+ 2 - 0
dtool/src/dtoolbase/dtoolbase.h

@@ -63,8 +63,10 @@
 /* Windows likes to define min() and max() macros, which will conflict with
    std::min() and std::max() respectively, unless we do this: */
 #ifdef WIN32
+#ifndef NOMINMAX
 #define NOMINMAX
 #endif
+#endif
 
 #ifndef __has_builtin
 #define __has_builtin(x) 0