mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Partly revert r18748, "Win32 compatibility": lib/libc directory doesn't have glib available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18761 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -219,13 +219,13 @@ translate_win32_picture (const char *picture)
|
||||
#if defined __GNUC__ && __GNUC__ >= 2
|
||||
# define match_string(cs1, s2) \
|
||||
({ size_t len = strlen (cs1); \
|
||||
int result = g_strncasecmp ((cs1), (s2), len) == 0; \
|
||||
int result = strncasecmp ((cs1), (s2), len) == 0; \
|
||||
if (result) (s2) += len; \
|
||||
result; })
|
||||
#else
|
||||
/* Oh come on. Get a reasonable compiler. */
|
||||
# define match_string(cs1, s2) \
|
||||
(g_strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1))
|
||||
(strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1))
|
||||
#endif
|
||||
/* We intentionally do not use isdigit() for testing because this will
|
||||
lead to problems with the wide character version. */
|
||||
@@ -261,7 +261,7 @@ translate_win32_picture (const char *picture)
|
||||
while (*alts != '\0') \
|
||||
{ \
|
||||
size_t len = strlen (alts); \
|
||||
if (g_strncasecmp (alts, rp, len) == 0) \
|
||||
if (strncasecmp (alts, rp, len) == 0) \
|
||||
break; \
|
||||
alts += len + 1; \
|
||||
++val; \
|
||||
|
||||
Reference in New Issue
Block a user