diff --git a/include/mruby/value.h b/include/mruby/value.h index d51fbb7bc..a940aabb7 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -72,6 +72,8 @@ typedef short mrb_sym; # define PRIo64 "I64o" # define PRIx64 "I64x" # define PRIX64 "I64X" +# define INFINITY ((float)(DBL_MAX * DBL_MAX)) +# define NAN ((float)(INFINITY - INFINITY)) # else # include # endif