浏览代码

dtoolbase: fix NOMINMAX macro redefinition warning

Younguk Kim 7 年之前
父节点
当前提交
d6efceb1ed
共有 1 个文件被更改,包括 2 次插入0 次删除
  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