diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2018-11-02 17:25:40 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2018-11-02 17:25:40 +0000 |
commit | df92dabaefcff44c5688b92a6414c97d4c9e702e (patch) | |
tree | 72604970a60a19f3e835fb46c2b3ff649d5be91e | |
parent | 79f2441eee0dd333dd2ac5763194059a77917c8c (diff) | |
download | bcm5719-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.cpp | 2 |
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 |