Author: rsmith Date: Thu Feb 11 13:40:06 2016 New Revision: 260570 URL: http://llvm.org/viewvc/llvm-project?rev=260570&view=rev Log: 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>.
Modified: libcxx/trunk/include/string.h Modified: libcxx/trunk/include/string.h URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string.h?rev=260570&r1=260569&r2=260570&view=diff ============================================================================== --- libcxx/trunk/include/string.h (original) +++ libcxx/trunk/include/string.h Thu Feb 11 13:40:06 2016 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits