[Mesa-dev] [PATCH 3/4] util: Prevent strcasecmp macro redefinion.
Jose Fonseca
jfonseca at vmware.com
Tue Aug 27 10:57:39 UTC 2019
MinGW headers already define it.
---
src/util/u_string.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/util/u_string.h b/src/util/u_string.h
index 5fea8f17e73..361dcb41e2b 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -110,7 +110,10 @@ util_asprintf(char **str, const char *fmt, ...)
return ret;
}
+#ifndef strcasecmp
#define strcasecmp stricmp
+#endif
+
#define strdup _strdup
#endif
--
2.17.1
More information about the mesa-dev
mailing list