The Gaudi Framework  v28r2p1 (f1a77ff4)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
strcasecmp.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_STRCASECMP_H
2 #define GAUDIKERNEL_STRCASECMP_H
3 
4 #ifdef _WIN32
5 #include <cstring>
6 inline int strcasecmp(const char *s1, const char *s2) {
7  return ::_stricmp(s1, s2);
8 }
9 inline int strncasecmp(const char *s1, const char *s2, size_t n) {
10  return ::_strnicmp(s1, s2, n);
11 }
12 #else // Unix uses string.h
13 #include <string.h>
14 #endif
15 
16 #endif // GAUDIKERNEL_STRCASECMP_H