path: root/math.c
diff options
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-16 04:25:37 (GMT)
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-16 04:25:37 (GMT)
commit558c362f607958d9e04346f3afda09461a135c32 (patch)
tree044f5c5d6c953dc728e13d2369a798eb2d6f5a23 /math.c
parentaffa0f845cb0d81e0d4a693766cb5875462b467d (diff)
math.c: remove needless ifdef clause
* math.c (ifdef M_PI): M_PI is eventually defined in missing.h even if math.h doesn't supply it. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
1 files changed, 0 insertions, 4 deletions
diff --git a/math.c b/math.c
index e1c0e1b..6caf550 100644
--- a/math.c
+++ b/math.c
@@ -989,12 +989,8 @@ InitVM_Math(void)
rb_mMath = rb_define_module("Math");
rb_eMathDomainError = rb_define_class_under(rb_mMath, "DomainError", rb_eStandardError);
-#ifdef M_PI
/* Definition of the mathematical constant PI as a Float number. */
rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI));
- rb_define_const(rb_mMath, "PI", DBL2NUM(atan(1.0)*4.0));
#ifdef M_E
/* Definition of the mathematical constant E (e) as a Float number. */