From 49658f362aee5e33bc0b7fb8ec579442043110aa Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 1 Mar 2010 18:44:49 +0000 Subject: [PATCH] MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp(). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18773 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libc/strptime.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/strptime.c b/lib/libc/strptime.c index 03b878001d..864ff94292 100644 --- a/lib/libc/strptime.c +++ b/lib/libc/strptime.c @@ -49,6 +49,11 @@ #include +#ifdef _MSC_VER +/* In MSVC, the strncasecmp function is available as _strnicmp */ +# define strncasecmp _strnicmp +#endif /* _MSC_VER */ + char * get_win32_locale_string (int lctype) {