summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2018-11-02 17:25:40 +0000
committerSylvestre Ledru <sylvestre@debian.org>2018-11-02 17:25:40 +0000
commitdf92dabaefcff44c5688b92a6414c97d4c9e702e (patch)
tree72604970a60a19f3e835fb46c2b3ff649d5be91e
parent79f2441eee0dd333dd2ac5763194059a77917c8c (diff)
downloadbcm5719-llvm-df92dabaefcff44c5688b92a6414c97d4c9e702e.tar.gz
bcm5719-llvm-df92dabaefcff44c5688b92a6414c97d4c9e702e.zip
Fixed inclusion of M_PI fow MinGW-w64
Patch by KOLANICH llvm-svn: 346000
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 55b1a872484..88e07b99e72 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
// Provide M_PI.
#define _USE_MATH_DEFINES
#endif
OpenPOWER on IntegriCloud