2011-01-03 14:00:53 +00:00
|
|
|
// Wrapper for MSVC/GCC
|
2010-03-04 10:24:28 +00:00
|
|
|
#ifndef _STRINGS_WRAPPER_H
|
|
|
|
#define _STRINGS_WRAPPER_H
|
|
|
|
|
2011-01-03 14:00:53 +00:00
|
|
|
|
|
|
|
// For GCC, just use strings.h (this applies to mingw too)
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
# include <strings.h>
|
2011-01-10 20:47:48 +00:00
|
|
|
#elif defined(MSVC) || defined(_MSC_VER)
|
2011-01-03 14:00:53 +00:00
|
|
|
# pragma warning(disable: 4996)
|
|
|
|
# define strcasecmp stricmp
|
|
|
|
# define snprintf _snprintf
|
2010-06-28 09:45:42 +00:00
|
|
|
#else
|
2011-01-03 14:00:53 +00: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 10:24:28 +00:00
|
|
|
|
2011-01-03 14:00:53 +00:00
|
|
|
#endif /* _STRINGS_WRAPPER_H */
|