Go to the documentation of this file.00001 #ifndef GAUDIKERNEL_STRCASECMP_H
00002 #define GAUDIKERNEL_STRCASECMP_H
00003
00004 #ifdef _WIN32
00005 #include <cstring>
00006 inline int strcasecmp(const char *s1, const char *s2) {
00007 return ::_stricmp(s1, s2);
00008 }
00009 inline int strncasecmp(const char *s1, const char *s2, size_t n) {
00010 return ::_strnicmp(s1, s2, n);
00011 }
00012 #else // Unix uses string.h
00013 #include <string.h>
00014 #endif
00015
00016 #endif // GAUDIKERNEL_STRCASECMP_H