summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 21:24:31 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 21:24:31 +0000
commit7339e678f4a862071373d3bf9e17107b4302a3ad (patch)
tree196b3f4c2fac59a4f7a55624003d4058c765da22 /include/ruby/missing.h
parent3307d65dc6a9c7290850f3f7b70af885d85d7653 (diff)
* 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
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 0edb1ec6c0a..1297c43a7a6 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