diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/missing.h | 8 |
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) |