[Mesa-dev] [PATCH 09/14] util: add util_strcasecmp() wrapper

Brian Paul brianp at vmware.com
Fri Aug 28 14:31:28 PDT 2015


Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
 src/gallium/auxiliary/util/u_string.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h
index f7ab09c..adcdf20 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
 
-- 
1.9.1



More information about the mesa-dev mailing list