From: Jose Fonseca Date: Tue, 27 Aug 2019 10:53:00 +0000 (+0100) Subject: util: Prevent strcasecmp macro redefinion. X-Git-Tag: upstream/19.3.0~2417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b2bc8f25ef1b0765a26a1a888bf6f3c60d7d8dc;p=platform%2Fupstream%2Fmesa.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 5fea8f1..361dcb4 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