]> git.mxchange.org Git - simgear.git/commitdiff
MS patch from Norm Vine to fix min/max macro defs.
authordavid <david>
Sun, 17 Nov 2002 00:34:40 +0000 (00:34 +0000)
committerdavid <david>
Sun, 17 Nov 2002 00:34:40 +0000 (00:34 +0000)
simgear/compiler.h

index e80b1826d2fc1cf18f379aff5ab5d8d4b439da2f..eb6c162857d50e71c5ff32c89f7155b71819913e 100644 (file)
 #      define STL_STRING     <string>
 #      define STL_STRSTREAM  <strstream>
 
+# ifdef WIN32
+       // keep windows.h from #defining min() max() macros
+#      define NOMINMAX
+#endif
+
 #  else
 #    error Time to upgrade. GNU compilers < 2.7 not supported
 #  endif