summaryrefslogtreecommitdiff
path: root/navit/support
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-30 12:35:29 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-30 12:35:29 +0000
commita4d9fdcc361a84305853b8818bd6a0836ef354df (patch)
tree63bc5fee61dd2cb7aa67949c5af369d352544ae2 /navit/support
parent4e34551aa19ba1f7fe4455e8b080eaca74f69b9d (diff)
downloadnavit-svn-a4d9fdcc361a84305853b8818bd6a0836ef354df.tar.gz
Add:support_libc:Missing functions for vc
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4814 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/support')
-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 81489da0..9a91d41b 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 00000000..a238e22f
--- /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);
+}
+