From 7b65fb292af0ae16ef42ff174eb52e7e0d07a839 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Feb 2015 02:25:22 +0000 Subject: complex.c: M_PI in VC * complex.c (_USE_MATH_DEFINES): needed for M_PI in Microsoft Visual C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'complex.c') diff --git a/complex.c b/complex.c index 9e352a8c39..efba0b34e7 100644 --- a/complex.c +++ b/complex.c @@ -6,6 +6,10 @@ */ #include "internal.h" +#if defined _MSC_VER +/* Microsoft Visual C does not define M_PI and others by default */ +# define _USE_MATH_DEFINES 1 +#endif #include #define NDEBUG -- cgit v1.2.3