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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user