Commit 8a4faae5 authored by cremno's avatar cremno

MSVC: add NAN and INFINITY for older versions

parent f57b9d15
...@@ -72,6 +72,8 @@ typedef short mrb_sym; ...@@ -72,6 +72,8 @@ typedef short mrb_sym;
# define PRIo64 "I64o" # define PRIo64 "I64o"
# define PRIx64 "I64x" # define PRIx64 "I64x"
# define PRIX64 "I64X" # define PRIX64 "I64X"
# define INFINITY ((float)(DBL_MAX * DBL_MAX))
# define NAN ((float)(INFINITY - INFINITY))
# else # else
# include <inttypes.h> # include <inttypes.h>
# endif # endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment