aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-19 16:29:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-19 16:29:31 +0000
commit603cdc271042ab32461ef9d4311352496483f639 (patch)
treeeeda414df6ef00fddfd2ccd3c8317f09e0cb0a0c /include
parent9949407fd90c1c5bfe332141c75db995a9b867aa (diff)
downloadruby-603cdc271042ab32461ef9d4311352496483f639.tar.gz
check INFINITY and NAN without C99 option
* configure.in: check INFINITY and NAN without an option for C99 so that rb_infinity and rb_nan are respectively available regardless that option if they may be used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/missing.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index f9e9daed3a..e81ad2769d 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -143,17 +143,13 @@ union bytesequence4_or_float {
};
#endif
-#ifdef INFINITY
-# define HAVE_INFINITY
-#else
+#ifndef INFINITY
/** @internal */
RUBY_EXTERN const union bytesequence4_or_float rb_infinity;
# define INFINITY (rb_infinity.float_value)
#endif
-#ifdef NAN
-# define HAVE_NAN
-#else
+#ifndef NAN
/** @internal */
RUBY_EXTERN const union bytesequence4_or_float rb_nan;
# define NAN (rb_nan.float_value)