summaryrefslogtreecommitdiffstats
path: root/libstdc++/include/cstring
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-06-25 16:53:37 -0700
committerDavid 'Digit' Turner <digit@google.com>2010-06-25 16:53:37 -0700
commit0621a279adfb981ea1f0564e7fc8280cda78e043 (patch)
tree9763ca0fde6d2ece1ba2e19a3146a9c9f905b195 /libstdc++/include/cstring
parentfa5755ae980b6f4ac5df37b263ba20f472db31ca (diff)
downloadbionic-0621a279adfb981ea1f0564e7fc8280cda78e043.zip
bionic-0621a279adfb981ea1f0564e7fc8280cda78e043.tar.gz
bionic-0621a279adfb981ea1f0564e7fc8280cda78e043.tar.bz2
libstdc++: use extern "C++" in all our C++ system headers.
This is needed to build an independent toolchain with g++ that doesn't think that all these headers are in C. Change-Id: Ie9a8ccfcab7780d6a4e5722777d61c2b1b312001
Diffstat (limited to 'libstdc++/include/cstring')
-rw-r--r--libstdc++/include/cstring4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++/include/cstring b/libstdc++/include/cstring
index 80473cc..d3d9387 100644
--- a/libstdc++/include/cstring
+++ b/libstdc++/include/cstring
@@ -37,6 +37,8 @@
#include <cstddef>
#include <string.h>
+extern "C++" {
+
namespace std
{
using ::memchr;
@@ -63,4 +65,6 @@ using ::strtok;
using ::strxfrm;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTRING__