mojoshader_internal.h
changeset 1198 84ae1b18fdfe
parent 1192 706e4d246ca1
child 1201 2ca303e50e27
--- a/mojoshader_internal.h	Tue Apr 23 01:42:58 2019 -0400
+++ b/mojoshader_internal.h	Tue Apr 23 13:28:17 2019 -0400
@@ -103,10 +103,13 @@
 size_t MOJOSHADER_printFloat(char *text, size_t maxlen, float arg);
 
 #ifdef _MSC_VER
+#include <float.h>
 #include <malloc.h>
 #define va_copy(a, b) a = b
 #define snprintf _snprintf  // !!! FIXME: not a safe replacement!
 #define vsnprintf _vsnprintf  // !!! FIXME: not a safe replacement!
+#define isnan _isnan // !!! FIXME: not a safe replacement!
+#define isinf(x) (!_isfinite(x)) // FIXME: not a safe replacement!
 #define strcasecmp stricmp
 #define strncasecmp strnicmp
 typedef unsigned __int8 uint8;