summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 07:03:23 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 07:03:23 (GMT)
commitd42e547ab1a487a00ccd4f71604b58e1cce060eb (patch)
tree08de5c510fb68cc9c671adeb1f1764a1431471e1 /math.c
parentfc4b2d922839769b2e12f3ccbf384ba923f97c90 (diff)
* 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 87d487d..a781167 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>