Skip to content
Permalink
Browse files
VS2010 buildfixes
  • Loading branch information
flibitijibibo committed Apr 23, 2019
1 parent 9600ad8 commit 6b558773b74cf8d41885fcc134960e41ca0517ef

File 1 of 1 in 6b55877

@@ -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;

0 comments on commit 6b55877

Please sign in to comment.