@@ -907,7 +907,8 @@ CIVETWEB_API void mg_cry(const struct mg_connection *conn,
...) PRINTF_ARGS(2, 3);
-/* utility method to compare two buffers, case incensitive. */
+/* utility methods to compare two buffers, case incensitive. */
+CIVETWEB_API int mg_strcasecmp(const char *s1, const char *s2);
CIVETWEB_API int mg_strncasecmp(const char *s1, const char *s2, size_t len);
@@ -1598,7 +1598,7 @@ mg_strncasecmp(const char *s1, const char *s2, size_t len)
}
-static int
+int
mg_strcasecmp(const char *s1, const char *s2)
{
int diff;
@@ -48,19 +48,6 @@
* http://check.sourceforge.net/doc/check_html/index.html
*/
-/* Replicate this function here, since it is static in civetweb.c */
-mg_strcasecmp(const char *s1, const char *s2)
-{
- int diff;
-
- do {
- diff = lowercase(s1++) - lowercase(s2++);
- } while (diff == 0 && s1[-1] != '\0');
- return diff;
-}
static const char *
locate_path(const char *a_path)