From e60d3275862190a8e154c25eb6b815e64dd93deb Mon Sep 17 00:00:00 2001 From: martin-s Date: Fri, 30 Sep 2011 12:35:29 +0000 Subject: [PATCH] Add:support_libc:Missing functions for vc git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4814 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/support/libc/CMakeLists.txt | 2 +- navit/navit/support/libc/strcasecmp.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 navit/navit/support/libc/strcasecmp.c diff --git a/navit/navit/support/libc/CMakeLists.txt b/navit/navit/support/libc/CMakeLists.txt index 81489da..9a91d41 100644 --- a/navit/navit/support/libc/CMakeLists.txt +++ b/navit/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/navit/support/libc/strcasecmp.c b/navit/navit/support/libc/strcasecmp.c new file mode 100644 index 0000000..a238e22 --- /dev/null +++ b/navit/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 + +int +strcasecmp (const char *sz1, const char *sz2) +{ + return _stricmp (sz1, sz2); +} + -- 2.7.4