diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:40 +0000 |
commit | 42e36319bdee85d67e03fff042663b6209b61d62 (patch) | |
tree | fc6a1d7cfff81865fb2badc9d64db999af9717ef /include/ruby/missing.h | |
parent | 6f869a57feddab587f32b0bfa1908af9c3a10c9c (diff) |
ruby/missing.h: M_PI fallback definition
* include/ruby/missing.h (M_PI, M_PI_2): fallback definitions for
VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r-- | include/ruby/missing.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 161d95430a..f9e9daed3a 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -37,6 +37,13 @@ extern "C" { #endif #endif +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif +#ifndef M_PI_2 +# define M_PI_2 (M_PI/2) +#endif + #ifndef RUBY_SYMBOL_EXPORT_BEGIN # define RUBY_SYMBOL_EXPORT_BEGIN /* begin */ # define RUBY_SYMBOL_EXPORT_END /* end */ |