aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 07:03:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 07:03:23 +0000
commitdc03a355bf2088c6995bbb0d63ec2c7f86f0f7d7 (patch)
tree08de5c510fb68cc9c671adeb1f1764a1431471e1 /math.c
parent84d540ba4b96cc8e607d7dccdc9ab064c83c92c0 (diff)
downloadruby-dc03a355bf2088c6995bbb0d63ec2c7f86f0f7d7.tar.gz
* math.c (_USE_MATH_DEFINES): it must be set before including internal.h
because internal.h includes ruby.h, ruby.h includes win32.h, and win32.h includes system's math.h. this change is to get rid of a compiler warning (redefinition of a macro) introduced at r55641. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index 87d487d8a6..a781167d5e 100644
--- a/math.c
+++ b/math.c
@@ -9,10 +9,10 @@
**********************************************************************/
-#include "internal.h"
#ifdef _MSC_VER
# define _USE_MATH_DEFINES 1
#endif
+#include "internal.h"
#include <float.h>
#include <math.h>
#include <errno.h>