Skip to content

Commit

Permalink
VS2010 buildfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 23, 2019
1 parent 9600ad8 commit 6b55877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader_internal.h
Expand Up @@ -103,10 +103,13 @@ typedef unsigned int uint; // this is a printf() helper. don't use for code.
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;
Expand Down

0 comments on commit 6b55877

Please sign in to comment.