From: Sven van Haastregt Date: Wed, 14 Aug 2019 10:30:18 +0000 (+0000) Subject: Fix _WIN32 / _WIN64 Wundef warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5875aeb9efc4aca90b17fc1182ef226bb31f61f7;p=clang Fix _WIN32 / _WIN64 Wundef warnings 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 --- diff --git a/lib/Driver/ToolChains/HIP.cpp b/lib/Driver/ToolChains/HIP.cpp index 2ec97e798f..3b871dcada 100644 --- a/lib/Driver/ToolChains/HIP.cpp +++ b/lib/Driver/ToolChains/HIP.cpp @@ -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"