util: Prevent strcasecmp macro redefinion.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 27 Aug 2019 10:53:00 +0000 (11:53 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 28 Aug 2019 14:52:07 +0000 (15:52 +0100)
MinGW headers already define it.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/util/u_string.h

index 5fea8f17e737409f0736191a351a83cc1a051802..361dcb41e2bec42abee2c36138a8aca439830306 100644 (file)
@@ -110,7 +110,10 @@ util_asprintf(char **str, const char *fmt, ...)
    return ret;
 }
 
+#ifndef strcasecmp
 #define strcasecmp stricmp
+#endif
+
 #define strdup _strdup
 
 #endif