diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-06 06:11:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-06 06:11:37 +0000 |
commit | 5574d874fb0ead39ad34000cdae4b55327465af6 (patch) | |
tree | 1054760f26cf2d630d07fd35a55cfd2397b0b262 /include | |
parent | f4e499de6cf0708e5982e905fac24f33f4e1b58e (diff) | |
download | ruby-5574d874fb0ead39ad34000cdae4b55327465af6.tar.gz |
* include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
defines.h to missing.h. (couldn't use RUBY_EXTERN there.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/defines.h | 16 | ||||
-rw-r--r-- | include/ruby/missing.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index c9d6db2f6b..ea38dc3689 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -133,22 +133,6 @@ void xfree(void*); #define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x" #define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X" -#ifdef INFINITY -# define HAVE_INFINITY -#else -/** @internal */ -RUBY_EXTERN const unsigned char rb_infinity[]; -# define INFINITY (*(float *)rb_infinity) -#endif - -#ifdef NAN -# define HAVE_NAN -#else -/** @internal */ -RUBY_EXTERN const unsigned char rb_nan[]; -# define NAN (*(float *)rb_nan) -#endif - #ifdef __CYGWIN__ #undef _WIN32 #endif diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 1a1aa958ac..ac0a5c9dc0 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -119,6 +119,22 @@ RUBY_EXTERN double lgamma_r(double, int *); RUBY_EXTERN double cbrt(double); #endif +#ifdef INFINITY +# define HAVE_INFINITY +#else +/** @internal */ +RUBY_EXTERN const unsigned char rb_infinity[]; +# define INFINITY (*(float *)rb_infinity) +#endif + +#ifdef NAN +# define HAVE_NAN +#else +/** @internal */ +RUBY_EXTERN const unsigned char rb_nan[]; +# define NAN (*(float *)rb_nan) +#endif + #ifndef isinf # ifndef HAVE_ISINF # if defined(HAVE_FINITE) && defined(HAVE_ISNAN) |