Minimal set of fixes to build with MinGW.
parent
f3ae1ea737
commit
6b6ee5440e
@ -1,13 +1,18 @@
|
||||
// Wrapper for MSVC
|
||||
// Wrapper for MSVC/GCC
|
||||
#ifndef _STRINGS_WRAPPER_H
|
||||
#define _STRINGS_WRAPPER_H
|
||||
|
||||
#ifdef WIN32
|
||||
#pragma warning(disable: 4996)
|
||||
#define strcasecmp stricmp
|
||||
#define snprintf _snprintf
|
||||
|
||||
// For GCC, just use strings.h (this applies to mingw too)
|
||||
#if defined(__GNUC__)
|
||||
# include <strings.h>
|
||||
#elif defined(MSVC)
|
||||
# pragma warning(disable: 4996)
|
||||
# define strcasecmp stricmp
|
||||
# define snprintf _snprintf
|
||||
#else
|
||||
#include <strings.h>
|
||||
#endif
|
||||
# warning "Unable to determine your compiler, you should probably take a look here."
|
||||
# include <strings.h> // Just take a guess
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* _STRINGS_WRAPPER_H */
|
||||
|
Loading…
Reference in New Issue