projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f7b36
)
util: Prevent strcasecmp macro redefinion.
author
Jose Fonseca
<jfonseca@vmware.com>
Tue, 27 Aug 2019 10:53:00 +0000
(11:53 +0100)
committer
Jose 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
patch
|
blob
|
history
diff --git
a/src/util/u_string.h
b/src/util/u_string.h
index 5fea8f17e737409f0736191a351a83cc1a051802..361dcb41e2bec42abee2c36138a8aca439830306 100644
(file)
--- 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