VS2010 buildfixes
authorCaleb Cornett <caleb.cornett@outlook.com>
Tue, 24 Mar 2020 21:17:37 -0400
changeset 1234 608cef8fa24d
parent 1233 e3bd5f116e38
child 1235 8fd6c5efe453
VS2010 buildfixes
mojoshader_internal.h
profiles/mojoshader_profile_spirv.c
--- a/mojoshader_internal.h	Fri Feb 21 00:37:06 2020 -0500
+++ b/mojoshader_internal.h	Tue Mar 24 21:17:37 2020 -0400
@@ -122,7 +122,7 @@
 #define vsnprintf _vsnprintf  // !!! FIXME: not a safe replacement!
 #define isnan _isnan // !!! FIXME: not a safe replacement!
 #if _MSC_VER < 1900 // pre MSVC 2015
-#define isinf(x) (!_isfinite(x)) // FIXME: not a safe replacement!
+#define isinf(x) (!_finite(x)) // FIXME: not a safe replacement!
 #endif
 #define strcasecmp stricmp
 #define strncasecmp strnicmp
--- a/profiles/mojoshader_profile_spirv.c	Fri Feb 21 00:37:06 2020 -0500
+++ b/profiles/mojoshader_profile_spirv.c	Tue Mar 24 21:17:37 2020 -0400
@@ -429,7 +429,7 @@
         idtype = spv_get_type(ctx, STI_UINT);
     else
     {
-        failf(ctx, "%s: invalid attribute type %d", __func__, type);
+        failf(ctx, "spv_output_scalar: invalid attribute type %d", type);
         return 0;
     } // else
     idret = spv_bumpid(ctx);