projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium/gallivm: enable linking lp_bld_printf function with C++ code
[mesa.git]
/
src
/
util
/
u_string.h
diff --git
a/src/util/u_string.h
b/src/util/u_string.h
index 5fea8f17e737409f0736191a351a83cc1a051802..cd21f9d1af1b0dbffece986054a444498502978f 100644
(file)
--- a/
src/util/u_string.h
+++ b/
src/util/u_string.h
@@
-50,7
+50,7
@@
extern "C" {
#endif
-#if
ndef _GNU_SOURCE
+#if
!defined(_GNU_SOURCE) || defined(__APPLE__)
#define strchrnul util_strchrnul
static inline char *
@@
-110,7
+110,10
@@
util_asprintf(char **str, const char *fmt, ...)
return ret;
}
+#ifndef strcasecmp
#define strcasecmp stricmp
+#endif
+
#define strdup _strdup
#endif