util: add util_strcasecmp() wrapper
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_string.h

index f7ab09c8f1c2f830c6e3a0e35cd1a24f85cfb4be..adcdf200ec89c8514345244ae7bb21b33c2fe12c 100644 (file)
@@ -199,6 +199,8 @@ util_memmove(void *dest, const void *src, size_t n)
 }
 
 
+#define util_strcasecmp stricmp
+
 #else
 
 #define util_vsnprintf vsnprintf
@@ -211,6 +213,7 @@ util_memmove(void *dest, const void *src, size_t n)
 #define util_strncat strncat
 #define util_strstr strstr
 #define util_memmove memmove
+#define util_strcasecmp strcasecmp
 
 #endif