From 7339e678f4a862071373d3bf9e17107b4302a3ad Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 19 Jun 2012 21:24:31 +0000 Subject: * 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 --- ChangeLog | 5 +++++ include/ruby/missing.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 40b91ba34c..152c58f5fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 18 19:31:20 2012 KOSAKI Motohiro + + * 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 * array.c (ary_reverse): use ansi style declaration. diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 0edb1ec6c0..1297c43a7a 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -20,6 +20,7 @@ extern "C" { #include "ruby/config.h" #include +#include /* for INFINITY and NAN */ #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif -- cgit v1.2.3