diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2019-08-27 11:53:00 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2019-08-28 15:52:07 +0100 |
commit | 6b2bc8f25ef1b0765a26a1a888bf6f3c60d7d8dc (patch) | |
tree | 0e8bc0b593bc0d9a1d4abf85bac9364c40597a82 | |
parent | 46f7b3662f09e0beb0251817c1501110a46b3604 (diff) |
util: Prevent strcasecmp macro redefinion.
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>
-rw-r--r-- | src/util/u_string.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |