2011-01-03 17:00:53 +03:00
|
|
|
// Wrapper for MSVC/GCC
|
2010-03-04 11:24:28 +01:00
|
|
|
#ifndef _STRINGS_WRAPPER_H
|
|
|
|
#define _STRINGS_WRAPPER_H
|
|
|
|
|
2011-01-03 17:00:53 +03:00
|
|
|
|
|
|
|
// For GCC, just use strings.h (this applies to mingw too)
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
# include <strings.h>
|
2011-01-10 13:47:48 -07:00
|
|
|
#elif defined(MSVC) || defined(_MSC_VER)
|
2011-01-03 17:00:53 +03:00
|
|
|
# pragma warning(disable: 4996)
|
|
|
|
# define strcasecmp stricmp
|
|
|
|
# define snprintf _snprintf
|
2010-06-28 11:45:42 +02:00
|
|
|
#else
|
2011-01-03 17:00:53 +03:00
|
|
|
# warning "Unable to determine your compiler, you should probably take a look here."
|
|
|
|
# include <strings.h> // Just take a guess
|
|
|
|
#endif
|
2010-03-04 11:24:28 +01:00
|
|
|
|
2011-01-03 17:00:53 +03:00
|
|
|
#endif /* _STRINGS_WRAPPER_H */
|