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:
@@ -40,8 +40,12 @@
|
||||
|
||||
// POSIX calls it strcasecmp, Windows uses stricmp... no ANSI standard.
|
||||
#ifdef WIN32
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp _stricmp
|
||||
#else
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Definition of the base data types
|
||||
/// 8bit unsigned integer
|
||||
|
||||
Reference in New Issue
Block a user