Mercurial > pidgin.yaz
diff pidgin/plugins/spellchk.c @ 18398:16bdcffb1c62
Use the glib strcasecmp functions everywhere, as we've had reports of
problems on Windows (with Visual Studio) and the Maemo platform. This way
we don't need to worry about where to include <strings.h>.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 01 Jul 2007 01:41:57 +0000 |
parents | 3d41d0d7fb9b |
children | 8ee1f173253c |
line wrap: on
line diff
--- a/pidgin/plugins/spellchk.c Sun Jul 01 01:25:02 2007 +0000 +++ b/pidgin/plugins/spellchk.c Sun Jul 01 01:41:57 2007 +0000 @@ -45,9 +45,6 @@ #include <stdio.h> #include <string.h> -#ifndef _WIN32 -#include <strings.h> -#endif #include <sys/types.h> #include <sys/stat.h> @@ -1787,19 +1784,19 @@ while (buf_get_line(ibuf, &buf, &pnt, size)) { if (*buf != '#') { - if (!strncasecmp(buf, "BAD ", 4)) + if (!g_ascii_strncasecmp(buf, "BAD ", 4)) { strncpy(bad, buf + 4, 81); } - else if(!strncasecmp(buf, "CASE ", 5)) + else if(!g_ascii_strncasecmp(buf, "CASE ", 5)) { case_sensitive = *(buf+5) == '0' ? FALSE : TRUE; } - else if(!strncasecmp(buf, "COMPLETE ", 9)) + else if(!g_ascii_strncasecmp(buf, "COMPLETE ", 9)) { complete = *(buf+9) == '0' ? FALSE : TRUE; } - else if (!strncasecmp(buf, "GOOD ", 5)) + else if (!g_ascii_strncasecmp(buf, "GOOD ", 5)) { strncpy(good, buf + 5, 255);