summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--navit/support/libc/CMakeLists.txt2
-rw-r--r--navit/support/libc/strcasecmp.c21
2 files changed, 22 insertions, 1 deletions
diff --git a/navit/support/libc/CMakeLists.txt b/navit/support/libc/CMakeLists.txt
index 81489da01..9a91d41b6 100644
--- a/navit/support/libc/CMakeLists.txt
+++ b/navit/support/libc/CMakeLists.txt
@@ -1 +1 @@
-supportlib_add_library(support_libc libc.c libc_init.c unlink.c rename.c time.c open.c abort.c mkdir.c lseek.c stat.c close.c chsize.c read.c write.c strcasecmp localtime.c gmtime.c mktime.c timeutil.c calloc.c bsearch.c)
+supportlib_add_library(support_libc libc.c libc_init.c unlink.c rename.c time.c open.c abort.c mkdir.c lseek.c stat.c close.c chsize.c read.c write.c strcasecmp.c localtime.c gmtime.c mktime.c timeutil.c calloc.c bsearch.c)
diff --git a/navit/support/libc/strcasecmp.c b/navit/support/libc/strcasecmp.c
new file mode 100644
index 000000000..a238e22f2
--- /dev/null
+++ b/navit/support/libc/strcasecmp.c
@@ -0,0 +1,21 @@
+/*
+ * strcasecmp.c
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is a part of the mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within the package.
+ *
+ * Oldnames from ANSI header string.h
+ *
+ * Some wrapper functions for those old name functions whose appropriate
+ * equivalents are not simply underscore prefixed.
+ *
+ */
+
+#include <string.h>
+
+int
+strcasecmp (const char *sz1, const char *sz2)
+{
+ return _stricmp (sz1, sz2);
+}
+