diff options
Diffstat (limited to 'include/ruby/missing.h')
| -rw-r--r-- | include/ruby/missing.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 03657042ce..4b88c9ea07 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -136,7 +136,7 @@ RUBY_EXTERN double lgamma_r(double, int *); RUBY_EXTERN double cbrt(double); #endif -#if !defined(INFINITY) || !defined(NAN) +#if !defined(HAVE_INFINITY) || !defined(HAVE_NAN) union bytesequence4_or_float { unsigned char bytesequence[4]; float float_value; @@ -147,18 +147,12 @@ union bytesequence4_or_float { /** @internal */ RUBY_EXTERN const union bytesequence4_or_float rb_infinity; # define INFINITY (rb_infinity.float_value) -# define USE_RB_INFINITY 1 #endif #ifndef NAN /** @internal */ RUBY_EXTERN const union bytesequence4_or_float rb_nan; # define NAN (rb_nan.float_value) -# define USE_RB_NAN 1 -#endif - -#ifndef HUGE_VAL -# define HUGE_VAL ((double)INFINITY) #endif #ifndef isinf @@ -193,10 +187,6 @@ RUBY_EXTERN int isnan(double); # endif #endif -#ifndef HAVE_NAN -RUBY_EXTERN double nan(const char *); -#endif - #ifndef HAVE_NEXTAFTER RUBY_EXTERN double nextafter(double x, double y); #endif |
