[cfe-commits] r143816 - /cfe/trunk/lib/Driver/ToolChains.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Nov 5 10:43:55 PDT 2011


Author: d0k
Date: Sat Nov  5 12:43:55 2011
New Revision: 143816

URL: http://llvm.org/viewvc/llvm-project?rev=143816&view=rev
Log:
Try to reduce the nastiness that creeps in through Windows.h a bit.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=143816&r1=143815&r2=143816&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sat Nov  5 12:43:55 2011
@@ -43,10 +43,10 @@
 // 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;





More information about the cfe-commits mailing list