diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-27 06:29:47 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-27 06:29:47 +0000 |
commit | 0cfe185f39d575f9c620bd14707a81bd5c29fe11 (patch) | |
tree | 144af7038923cb353364032967dd952e9ce5c1e6 /math.c | |
parent | 909477ec1de6f7f89d29405eb3ad268ecbd3ebf7 (diff) | |
download | ruby-0cfe185f39d575f9c620bd14707a81bd5c29fe11.tar.gz |
* math.c (math_atan2): you should know that M_PI is not the feature
of C90.
fixed build failure caused by r29115.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -51,6 +51,9 @@ extern VALUE rb_to_float(VALUE val); 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); |