projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96f495
)
Work around regression in glibc 2.22: request that glibc provides the correct
author
Richard Smith
<richard-llvm@metafoo.co.uk>
Thu, 11 Feb 2016 19:40:06 +0000
(19:40 +0000)
committer
Richard Smith
<richard-llvm@metafoo.co.uk>
Thu, 11 Feb 2016 19:40:06 +0000
(19:40 +0000)
prototypes for <string.h> functions that are converted into overload sets in
C++. This matches the existing workaround in <wchar.h>.
llvm-svn: 260570
libcxx/include/string.h
patch
|
blob
|
history
diff --git
a/libcxx/include/string.h
b/libcxx/include/string.h
index
234a6cf
..
5f14c37
100644
(file)
--- a/
libcxx/include/string.h
+++ b/
libcxx/include/string.h
@@
-58,6
+58,10
@@
size_t strlen(const char* s);
#pragma GCC system_header
#endif
+#ifdef __cplusplus
+#define __CORRECT_ISO_CPP_STRING_H_PROTO
+#endif
+
#include_next <string.h>
// MSVCRT, GNU libc and its derivates already have the correct prototype in