From: Brian Paul Date: Tue, 1 Sep 2015 22:29:17 +0000 (-0600) Subject: util: add util_strcasecmp() wrapper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da33c2434b1dc4ca24a131a9625166278333b7d3;p=mesa.git util: add util_strcasecmp() wrapper Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h index f7ab09c8f1c..adcdf200ec8 100644 --- a/src/gallium/auxiliary/util/u_string.h +++ b/src/gallium/auxiliary/util/u_string.h @@ -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