diff --git a/firmware/common/strcasecmp.c b/firmware/common/strcasecmp.c index b9dd6c13c4..cdfbe2f81a 100644 --- a/firmware/common/strcasecmp.c +++ b/firmware/common/strcasecmp.c @@ -2,6 +2,7 @@ #include #include +#ifndef strcasecmp int strcasecmp(const char *s1, const char *s2) { while (*s1 != '\0' && tolower(*s1) == tolower(*s2)) { @@ -11,7 +12,9 @@ int strcasecmp(const char *s1, const char *s2) return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2); } +#endif +#ifndef strncasecmp int strncasecmp(const char *s1, const char *s2, size_t n) { int d = 0; @@ -26,3 +29,4 @@ int strncasecmp(const char *s1, const char *s2, size_t n) return d; } +#endif