From: Jose Fonseca Date: Tue, 27 Aug 2019 10:53:00 +0000 (+0100) Subject: util: Prevent strcasecmp macro redefinion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b2bc8f25ef1b0765a26a1a888bf6f3c60d7d8dc;p=mesa.git util: Prevent strcasecmp macro redefinion. MinGW headers already define it. Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger Acked-by: Eric Engestrom --- 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