* include/ruby/missing.h: include math.h before checking INFINITY

and NAN. Otherwise, strange macro redefinition will occur.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2012-06-19 21:24:31 +00:00
parent 3307d65dc6
commit 7339e678f4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jun 18 19:31:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/missing.h: include math.h before checking INFINITY
and NAN. Otherwise, strange macro redefinition will occur.
Mon Jun 18 19:12:37 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* array.c (ary_reverse): use ansi style declaration.

View File

@ -20,6 +20,7 @@ extern "C" {
#include "ruby/config.h"
#include <stddef.h>
#include <math.h> /* for INFINITY and NAN */
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif