r18773 - gnucash/trunk/lib/libc - MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp().

Christian Stimming cstim at code.gnucash.org
Mon Mar 1 13:44:49 EST 2010


Author: cstim
Date: 2010-03-01 13:44:49 -0500 (Mon, 01 Mar 2010)
New Revision: 18773
Trac: http://svn.gnucash.org/trac/changeset/18773

Modified:
   gnucash/trunk/lib/libc/strptime.c
Log:
MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp().

Modified: gnucash/trunk/lib/libc/strptime.c
===================================================================
--- gnucash/trunk/lib/libc/strptime.c	2010-03-01 18:44:28 UTC (rev 18772)
+++ gnucash/trunk/lib/libc/strptime.c	2010-03-01 18:44:49 UTC (rev 18773)
@@ -49,6 +49,11 @@
 
 #include <windows.h>
 
+#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)
 {



More information about the gnucash-changes mailing list