Cleanup foo.h headers and __config to work in C
llvm-svn: 252274
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 60506cbcd48a905950971f7211ceef1867aa25c8
diff --git a/include/stdlib.h b/include/stdlib.h
index 919faa1..12fd676 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -94,6 +94,7 @@
#include_next <stdlib.h>
#ifdef __cplusplus
+
extern "C++" {
#ifdef _LIBCPP_MSVCRT
@@ -123,6 +124,7 @@
#endif // _LIBCPP_MSVCRT / __sun__ / _AIX
} // extern "C++"
+
#endif // __cplusplus
#endif // _LIBCPP_STDLIB_H