summaryrefslogtreecommitdiffstats
path: root/libstdc++/include/cstddef
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/cstddef
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/cstddef')
-rw-r--r--libstdc++/include/cstddef4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++/include/cstddef b/libstdc++/include/cstddef
index fc1ca9d..cb06b49 100644
--- a/libstdc++/include/cstddef
+++ b/libstdc++/include/cstddef
@@ -38,9 +38,13 @@
*/
#include <stddef.h>
+extern "C++" {
+
namespace std {
using ::ptrdiff_t;
using ::size_t;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDDEF__