summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 10:51:40 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 10:51:40 (GMT)
commit42e36319bdee85d67e03fff042663b6209b61d62 (patch)
treefc6a1d7cfff81865fb2badc9d64db999af9717ef /math.c
parent6f869a57feddab587f32b0bfa1908af9c3a10c9c (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 'math.c')
-rw-r--r--math.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/math.c b/math.c
index 22bd731..134d937 100644
--- a/math.c
+++ b/math.c
@@ -106,9 +106,6 @@ num2dbl_with_to_f(VALUE num)
static VALUE
math_atan2(VALUE obj, VALUE y, VALUE x)
{
-#ifndef M_PI
-# define M_PI 3.14159265358979323846
-#endif
double dx, dy;
dx = Get_Double(x);
dy = Get_Double(y);