]> granicus.if.org Git - clang/commitdiff
Fix _WIN32 / _WIN64 Wundef warnings
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 14 Aug 2019 10:30:18 +0000 (10:30 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 14 Aug 2019 10:30:18 +0000 (10:30 +0000)
For these macros it is the definedness that matters rather than
the value.  Make new uses of these macros consistent with existing
uses.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368822 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/HIP.cpp

index 2ec97e798fd0509493269d5e047df2adb8808b39..3b871dcadadb634fb84eadbef98cafc1587ffb4d 100644 (file)
@@ -23,7 +23,7 @@ using namespace clang::driver::tools;
 using namespace clang;
 using namespace llvm::opt;
 
-#if _WIN32 || _WIN64
+#if defined(_WIN32) || defined(_WIN64)
 #define NULL_FILE "nul"
 #else
 #define NULL_FILE "/dev/null"