comparison libpurple/protocols/zephyr/ZVariables.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 b8572b937c09
children 0c796a1950b7
comparison
equal deleted inserted replaced
18397:e122b631a657 18398:16bdcffb1c62
184 184
185 #ifndef WIN32 185 #ifndef WIN32
186 #define max(a,b) ((a > b) ? (a) : (b)) 186 #define max(a,b) ((a > b) ? (a) : (b))
187 #endif 187 #endif
188 188
189 if (strncasecmp(bfr, var, max(strlen(var),cp - bfr))) 189 if (g_strncasecmp(bfr, var, max(strlen(var), cp - bfr)))
190 return(0); /* var is not the var in 190 return(0); /* var is not the var in
191 bfr ==> no match */ 191 bfr ==> no match */
192 192
193 cp = strchr(bfr, '='); 193 cp = strchr(bfr, '=');
194 if (!cp) 194 if (!cp)