[STLPORT]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 12 Oct 2011 09:05:23 +0000 (09:05 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 12 Oct 2011 09:05:23 +0000 (09:05 +0000)
- Do not define min() or max() when standard headers are included. Should fix MSVC build

svn path=/trunk/; revision=54088

reactos/include/c++/stlport/stl/config/_windows.h

index ac9856e..c1fe09c 100644 (file)
@@ -99,6 +99,10 @@ extern "C" {
 #      if !defined(WIN32_NO_STATUS)
 #        define WIN32_NO_STATUS
 #      endif
+/* Don't let windows.h define its min and max macros. */
+#      if !defined (NOMINMAX)
+#        define NOMINMAX
+#      endif
 #      include <windef.h>
 
 #ifndef InterlockedIncrement