From 585d3269c51b93a14e28bb3d19d2a18883ef3579 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Tue, 24 Mar 2020 21:17:37 -0400 Subject: [PATCH] VS2010 buildfixes --- mojoshader_internal.h | 2 +- profiles/mojoshader_profile_spirv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mojoshader_internal.h b/mojoshader_internal.h index 6d2296e5..4d761ae1 100644 --- a/mojoshader_internal.h +++ b/mojoshader_internal.h @@ -122,7 +122,7 @@ size_t MOJOSHADER_printFloat(char *text, size_t maxlen, float arg); #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 diff --git a/profiles/mojoshader_profile_spirv.c b/profiles/mojoshader_profile_spirv.c index bcb4c304..e9ce07fe 100644 --- a/profiles/mojoshader_profile_spirv.c +++ b/profiles/mojoshader_profile_spirv.c @@ -429,7 +429,7 @@ static uint32 spv_output_scalar(Context *ctx, ComponentList *cl, 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);