commit | 69b3c4b42b0d7e1a09f098b9a56a748677f4406c | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Tue May 30 11:25:30 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jun 02 15:48:29 2023 +0200 |
tree | 090bf7645b0f13e719adff94e980b6a133093ec1 | |
parent | 6e5844c2c099e79e99325fa825208f244bc64532 [diff] |
compat BUGFIX missing strncasecmp alias
diff --git a/compat/posix-shims/strings.h b/compat/posix-shims/strings.h index c917a66..1ac0519 100644 --- a/compat/posix-shims/strings.h +++ b/compat/posix-shims/strings.h
@@ -7,3 +7,11 @@ #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