aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp6
1 files changed, 3 insertions, 3 deletions
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 <Windows.h>
- #undef min
- #undef max
#endif
using namespace clang::driver;