summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2019-08-27 11:53:00 +0100
committerJose Fonseca <[email protected]>2019-08-28 15:52:07 +0100
commit6b2bc8f25ef1b0765a26a1a888bf6f3c60d7d8dc (patch)
tree0e8bc0b593bc0d9a1d4abf85bac9364c40597a82 /src/util
parent46f7b3662f09e0beb0251817c1501110a46b3604 (diff)
util: Prevent strcasecmp macro redefinion.
MinGW headers already define it. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/u_string.h3
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