ruby-changes:24091
From: kosaki <ko1@a...>
Date: Wed, 20 Jun 2012 06:24:45 +0900 (JST)
Subject: [ruby-changes:24091] kosaki:r36142 (trunk): * include/ruby/missing.h: include math.h before checking INFINITY
kosaki 2012-06-20 06:24:31 +0900 (Wed, 20 Jun 2012) New Revision: 36142 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36142 Log: * include/ruby/missing.h: include math.h before checking INFINITY and NAN. Otherwise, strange macro redefinition will occur. Modified files: trunk/ChangeLog trunk/include/ruby/missing.h Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 36141) +++ include/ruby/missing.h (revision 36142) @@ -20,6 +20,7 @@ #include "ruby/config.h" #include <stddef.h> +#include <math.h> /* for INFINITY and NAN */ #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif Index: ChangeLog =================================================================== --- ChangeLog (revision 36141) +++ ChangeLog (revision 36142) @@ -1,3 +1,8 @@ +Mon Jun 18 19:31:20 2012 KOSAKI Motohiro <kosaki.motohiro@g...> + + * 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@g...> * array.c (ary_reverse): use ansi style declaration. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/