[PATCH] D64657: Fix missing use of defined() in include guard
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 12:09:50 PDT 2019
daltenty created this revision.
Herald added subscribers: llvm-commits, hiraditya, nhaehnle, jvesely, arsenm.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64657
Files:
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
@@ -865,7 +865,7 @@
namespace llvm {
static double log2(double V) {
-#if _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
+#if _XOPEN_SOURCE >= 600 || defined(_ISOC99_SOURCE) || _POSIX_C_SOURCE >= 200112L
return ::log2(V);
#else
return log(V) / 0.693147180559945309417;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64657.209557.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/30042c7b/attachment.bin>
More information about the llvm-commits
mailing list