]> granicus.if.org Git - clang/commitdiff
Try to reduce the nastiness that creeps in through Windows.h a bit.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 Nov 2011 17:43:55 +0000 (17:43 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 Nov 2011 17:43:55 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143816 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index c9e86334d5094b41d3f009718152c9fdfde506d1..3a404e52452fb8e1e3deddaf9ddb40aac2b8ce08 100644 (file)
 // Include the necessary headers to interface with the Windows registry and
 // environment.
 #ifdef _MSC_VER
-  #define WIN32_LEAN_AND_MEAN 1
+  #define WIN32_LEAN_AND_MEAN
+  #define NOGDI
+  #define NOMINMAX
   #include <Windows.h>
-  #undef min
-  #undef max
 #endif
 
 using namespace clang::driver;