diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-09-30 12:35:29 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-09-30 12:35:29 +0000 |
commit | 08acb219e6069de66b6342bcf3ae1e166bc9ba1f (patch) | |
tree | 63bc5fee61dd2cb7aa67949c5af369d352544ae2 /navit/support | |
parent | 83b5af044639b76a611b1c440a831bd98dda69f8 (diff) | |
download | navit-08acb219e6069de66b6342bcf3ae1e166bc9ba1f.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.txt | 2 | ||||
-rw-r--r-- | navit/support/libc/strcasecmp.c | 21 |
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); +} + |