commit | 6568f34d7a4a259c4d44fab1f98c78ca5acc6a81 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Sat Dec 11 20:47:42 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | 17cebe9e2a1c0feb9fe62aa2f34e1c95d92efa96 | |
parent | 406e96e44eb6a792a12ed0a1532bc672c5663635 [diff] [blame] |
MSVC: compat: strcasecmp() in <strings.h> The #ifdef is for `_MSC_VER`, not `_WIN32`, because it's apparently available on MinGW.
diff --git a/compat/posix-shims/strings.h b/compat/posix-shims/strings.h new file mode 100644 index 0000000..c917a66 --- /dev/null +++ b/compat/posix-shims/strings.h
@@ -0,0 +1,9 @@ +#include <compat.h> + +#ifndef HAVE_STRCASECMP +#ifdef _MSC_VER +#define strcasecmp _stricmp +#else +#error No strcasecmp() implementation for this platform is available. +#endif +#endif