MSVC: add NAN and INFINITY for older versions

This commit is contained in:
cremno
2014-03-08 17:16:45 +01:00
parent f57b9d1576
commit 8a4faae55e
+2
View File
@@ -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 <inttypes.h>
# endif