diff options
Diffstat (limited to 'compat/posix-shims/strings.h')
-rw-r--r-- | compat/posix-shims/strings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/compat/posix-shims/strings.h b/compat/posix-shims/strings.h new file mode 100644 index 0000000..1ac0519 --- /dev/null +++ b/compat/posix-shims/strings.h @@ -0,0 +1,17 @@ +#include <compat.h> + +#ifndef HAVE_STRCASECMP +#ifdef _MSC_VER +#define strcasecmp _stricmp +#else +#error No strcasecmp() implementation for this platform is available. +#endif +#endif + +#ifndef HAVE_STRNCASECMP +#ifdef _MSC_VER +#define strncasecmp _strnicmp +#else +#error No strncasecmp() implementation for this platform is available. +#endif +#endif |