fixes for MSVC non-standard C library
strcase => _stricmp strncase => _strnicmp strdup => _strdup snprintf => _snprintf a compliant snprintf() is supposed to be available in MS Visual Studio 2015 and later
This commit is contained in:
@@ -33,6 +33,12 @@
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
#include <windows.h>
|
||||
#if defined(_MSC_VER)
|
||||
#define strdup _strdup
|
||||
#if _MSC_VER < 1900
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <SDL_image.h>
|
||||
|
||||
Reference in New Issue
Block a user