mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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://ci.ruby-lang.org/ruby/trunk@56810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
affa0f845c
commit
558c362f60
1 changed files with 0 additions and 4 deletions
4
math.c
4
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));
|
||||
#else
|
||||
rb_define_const(rb_mMath, "PI", DBL2NUM(atan(1.0)*4.0));
|
||||
#endif
|
||||
|
||||
#ifdef M_E
|
||||
/* Definition of the mathematical constant E (e) as a Float number. */
|
||||
|
|
Loading…
Reference in a new issue