summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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