mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fc4b2d9228
commit
d42e547ab1
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
Wed Jul 13 15:59:59 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Wed Jul 13 15:19:03 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* enc/iso_8859_1.c, enc/iso_8859_4.c: Avoid setting modification flag if
|
||||
|
|
2
math.c
2
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>
|
||||
|
|
Loading…
Reference in a new issue