OpenMW
libs/platform/strings.h
Go to the documentation of this file.
00001 // Wrapper for MSVC/GCC
00002 #ifndef _STRINGS_WRAPPER_H
00003 #define _STRINGS_WRAPPER_H
00004 
00005 
00006 // For GCC, just use strings.h (this applies to mingw too)
00007 #if defined(__GNUC__)
00008 #    include <strings.h>
00009 #elif defined(MSVC) || defined(_MSC_VER)
00010 #    pragma warning(disable: 4996)
00011 #    define strcasecmp stricmp
00012 #    define snprintf _snprintf
00013 #else
00014 #    warning "Unable to determine your compiler, you should probably take a look here."
00015 #    include <strings.h>  // Just take a guess
00016 #endif 
00017 
00018 #endif /* _STRINGS_WRAPPER_H */