[libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 11 11:40:06 PST 2016
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
More information about the cfe-commits
mailing list