ruby-changes:17119
From: usa <ko1@a...>
Date: Fri, 27 Aug 2010 15:39:52 +0900 (JST)
Subject: [ruby-changes:17119] Ruby:r29119 (trunk): * math.c (math_atan2): you should know that M_PI is not the feature
usa 2010-08-27 15:29:47 +0900 (Fri, 27 Aug 2010) New Revision: 29119 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29119 Log: * math.c (math_atan2): you should know that M_PI is not the feature of C90. fixed build failure caused by r29115. Modified files: trunk/ChangeLog trunk/math.c Index: math.c =================================================================== --- math.c (revision 29118) +++ math.c (revision 29119) @@ -51,6 +51,9 @@ static VALUE math_atan2(VALUE obj, VALUE y, VALUE x) { +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif double dx, dy; Need_Float2(y, x); dx = RFLOAT_VALUE(x); Index: ChangeLog =================================================================== --- ChangeLog (revision 29118) +++ ChangeLog (revision 29119) @@ -1,3 +1,9 @@ +Fri Aug 27 15:24:20 2010 NAKAMURA Usaku <usa@r...> + + * math.c (math_atan2): you should know that M_PI is not the feature + of C90. + fixed build failure caused by r29115. + Fri Aug 27 15:26:33 2010 Nobuyoshi Nakada <nobu@r...> * file.c (null_device): move from io.c. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/