diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-02-11 19:40:06 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-02-11 19:40:06 +0000 |
commit | 35c6f011ac5fa3c4ce507681808b006d19087971 (patch) | |
tree | d392e10a54dcb98acc7dacf39d32dd8d09196065 /include/string.h | |
parent | ab4148260e6326b8c0360deb8ed07bf1d1917bd3 (diff) |
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>.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@260570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index 234a6cf1f..5f14c37e4 100644 --- a/include/string.h +++ b/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 |