浏览代码

Fix warning caused by redefine NOMINMAX. (#4962)

Only define NOMINMAX in WIndIncludes.h when NOMINMAX not defined before.
Xiang Li 2 年之前
父节点
当前提交
730f30a69a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/dxc/Support/WinIncludes.h

+ 2 - 0
include/dxc/Support/WinIncludes.h

@@ -23,7 +23,9 @@
 #define NOATOM 1
 #define NOGDICAPMASKS 1
 #define NOMETAFILE 1
+#ifndef NOMINMAX
 #define NOMINMAX 1
+#endif
 #define NOOPENFILE 1
 #define NORASTEROPS 1
 #define NOSCROLL 1