VS2010 buildfixes
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Tue, 23 Apr 2019 13:28:17 -0400
changeset 1198 84ae1b18fdfe
parent 1197 4883fc7d3751
child 1199 b8ece252a201
VS2010 buildfixes
mojoshader_internal.h
--- 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;