Skip to content

Commit

Permalink
Fixed macro clashing with crt function name in MSVC 2015 and newer.
Browse files Browse the repository at this point in the history
  • Loading branch information
krolli committed Apr 27, 2019
1 parent 153eb42 commit eeb2529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader_internal.h
Expand Up @@ -109,7 +109,9 @@ size_t MOJOSHADER_printFloat(char *text, size_t maxlen, float arg);
#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;
Expand Down

0 comments on commit eeb2529

Please sign in to comment.