From: Benjamin Kramer Date: Sat, 5 Nov 2011 17:43:55 +0000 (+0000) Subject: Try to reduce the nastiness that creeps in through Windows.h a bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fdebeef8f6067808ad5adcfbf3cf03e904d3eda;p=clang Try to reduce the nastiness that creeps in through Windows.h a bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index c9e86334d5..3a404e5245 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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 - #undef min - #undef max #endif using namespace clang::driver;