Przeglądaj źródła

Fix warning caused by redefine NOMINMAX. (#4962)

Only define NOMINMAX in WIndIncludes.h when NOMINMAX not defined before.
Xiang Li 2 lat temu
rodzic
commit
730f30a69a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      include/dxc/Support/WinIncludes.h

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

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