diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/missing.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -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. 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 <stddef.h> +#include <math.h> /* for INFINITY and NAN */ #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif |