Fixed macro clashing with crt function name in MSVC 2015 and newer.
authorMartin Krošlák <kroslakma@gmail.com>
Sat, 27 Apr 2019 22:57:40 +0200
changeset 1201 2ca303e50e27
parent 1200 eb1e5280a5a9
child 1202 3e07483a681c
Fixed macro clashing with crt function name in MSVC 2015 and newer.
mojoshader_internal.h
--- a/mojoshader_internal.h	Tue Apr 23 14:55:13 2019 -0400
+++ b/mojoshader_internal.h	Sat Apr 27 22:57:40 2019 +0200
@@ -109,7 +109,9 @@
 #define snprintf _snprintf  // !!! FIXME: not a safe replacement!
 #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!
+#endif
 #define strcasecmp stricmp
 #define strncasecmp strnicmp
 typedef unsigned __int8 uint8;