From d42e547ab1a487a00ccd4f71604b58e1cce060eb Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 13 Jul 2016 07:03:23 +0000 Subject: * 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 --- math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.c') 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 #include #include -- cgit v1.2.1