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
|
#ifndef _STRINGS_WRAPPER_H
|
||||||
#define _STRINGS_WRAPPER_H
|
#define _STRINGS_WRAPPER_H
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
|
// For GCC, just use strings.h (this applies to mingw too)
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
# include <strings.h>
|
||||||
|
#elif defined(MSVC)
|
||||||
# pragma warning(disable: 4996)
|
# pragma warning(disable: 4996)
|
||||||
# define strcasecmp stricmp
|
# define strcasecmp stricmp
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
#else
|
#else
|
||||||
#include <strings.h>
|
# warning "Unable to determine your compiler, you should probably take a look here."
|
||||||
|
# include <strings.h> // Just take a guess
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif /* _STRINGS_WRAPPER_H */
|
||||||
|
Loading…
Reference in New Issue