diff options
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r-- | include/ruby/missing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index a3d7a6b7b7..cda0aea164 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -155,6 +155,10 @@ RUBY_EXTERN const union bytesequence4_or_float rb_nan; # define NAN (rb_nan.float_value) #endif +#ifndef HUGE_VAL +# define HUGE_VAL ((double)INFINITY) +#endif + #ifndef isinf # ifndef HAVE_ISINF # if defined(HAVE_FINITE) && defined(HAVE_ISNAN) |