summaryrefslogtreecommitdiffstats
path: root/libcxx/include/string.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-02-11 19:40:06 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-02-11 19:40:06 +0000
commit1b1c7e977feec17e3c62c035797335bc50623449 (patch)
tree04f65801e954bab14739460c599aec7be5c130a8 /libcxx/include/string.h
parentd96f49543d7cdc1a77ce82a4056f5f722ab0b118 (diff)
downloadbcm5719-llvm-1b1c7e977feec17e3c62c035797335bc50623449.tar.gz
bcm5719-llvm-1b1c7e977feec17e3c62c035797335bc50623449.zip
Work around regression in glibc 2.22: request that glibc provides the correct
prototypes for <string.h> functions that are converted into overload sets in C++. This matches the existing workaround in <wchar.h>. llvm-svn: 260570
Diffstat (limited to 'libcxx/include/string.h')
-rw-r--r--libcxx/include/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/string.h b/libcxx/include/string.h
index 234a6cf1fff..5f14c37e4ab 100644
--- 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
OpenPOWER on IntegriCloud