diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2018-08-23 09:42:58 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2018-08-23 09:42:58 +0000 |
commit | 0dfbf6b6085bff1e0d77c16274a0e44fda314047 (patch) | |
tree | 2f089bfa3028a41f8ebe246447378f20b6ee39ac /llvm/lib/Support/COM.cpp | |
parent | 6bcf2ba2f0fff179602fd60b5e0127cd20fc907e (diff) | |
download | bcm5719-llvm-0dfbf6b6085bff1e0d77c16274a0e44fda314047.tar.gz bcm5719-llvm-0dfbf6b6085bff1e0d77c16274a0e44fda314047.zip |
[Support] Fix some Wundef warnings
For the _WIN32 macro, it is the definedness that matters rather than
the value. Most uses of the macro already rely on the definedness.
This commit fixes the few remaining uses that relied on the value.
Differential Revision: https://reviews.llvm.org/D51105
llvm-svn: 340520
Diffstat (limited to 'llvm/lib/Support/COM.cpp')
-rw-r--r-- | llvm/lib/Support/COM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/COM.cpp b/llvm/lib/Support/COM.cpp index 2e3ff66843d..97cd085853b 100644 --- a/llvm/lib/Support/COM.cpp +++ b/llvm/lib/Support/COM.cpp @@ -18,6 +18,6 @@ // Include the platform-specific parts of this class. #ifdef LLVM_ON_UNIX #include "Unix/COM.inc" -#elif _WIN32 +#elif defined(_WIN32) #include "Windows/COM.inc" #endif |