Add:support_libc:Missing functions for vc
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 30 Sep 2011 12:35:29 +0000 (12:35 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 30 Sep 2011 12:35:29 +0000 (12:35 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4814 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/support/libc/CMakeLists.txt
navit/navit/support/libc/strcasecmp.c [new file with mode: 0644]

index 81489da..9a91d41 100644 (file)
@@ -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/navit/support/libc/strcasecmp.c b/navit/navit/support/libc/strcasecmp.c
new file mode 100644 (file)
index 0000000..a238e22
--- /dev/null
@@ -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);
+}
+