Fixed inclusion of M_PI fow MinGW-w64
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 2 Nov 2018 17:25:40 +0000 (17:25 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 2 Nov 2018 17:25:40 +0000 (17:25 +0000)
Patch by KOLANICH

llvm-svn: 346000

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

index 55b1a872484995bea3325e0c3921d862db15c77c..88e07b99e727778e54c24c08469c2d31fbd15611 100644 (file)
@@ -12,7 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
 // Provide M_PI.
 #define _USE_MATH_DEFINES
 #endif