From: NAKAMURA Takumi Date: Sun, 20 Jul 2014 11:15:07 +0000 (+0000) Subject: SIISelLowering.cpp: Define _USE_MATH_DEFINES to let M_PI provided on MS . X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a3c3e9a155028de59aed3b6df2e1ff316ba11b0;p=oota-llvm.git SIISelLowering.cpp: Define _USE_MATH_DEFINES to let M_PI provided on MS . 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 --- diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index e6c1614eb27..b3e3997a305 100644 --- 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 +#endif + #include "SIISelLowering.h" #include "AMDGPU.h" #include "AMDGPUIntrinsicInfo.h"