projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d55cc6
)
SIISelLowering.cpp: Define _USE_MATH_DEFINES to let M_PI provided on MS <cmath>.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 20 Jul 2014 11:15:07 +0000
(11:15 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 20 Jul 2014 11:15:07 +0000
(11:15 +0000)
FIXME: Would it be better to move it into configure?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213477
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/R600/SIISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/R600/SIISelLowering.cpp
b/lib/Target/R600/SIISelLowering.cpp
index e6c1614eb2766a43050baf2f3140232ea74b1815..b3e3997a30516e74a2a8e90c0706690c372a1f2f 100644
(file)
--- a/
lib/Target/R600/SIISelLowering.cpp
+++ b/
lib/Target/R600/SIISelLowering.cpp
@@
-12,6
+12,12
@@
//
//===----------------------------------------------------------------------===//
+#ifdef _MSC_VER
+// Provide M_PI.
+#define _USE_MATH_DEFINES
+#include <cmath>
+#endif
+
#include "SIISelLowering.h"
#include "AMDGPU.h"
#include "AMDGPUIntrinsicInfo.h"