commit | 5ea2265afc2aafc97529227afa6391ea6b561a35 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Sat Dec 11 20:47:42 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | 17cebe9e2a1c0feb9fe62aa2f34e1c95d92efa96 | |
parent | 55428a58df6e370284621b32942ee35ddd4a7911 [diff] |
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