diff options
author | David 'Digit' Turner <digit@google.com> | 2010-06-25 16:53:37 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-06-25 16:53:37 -0700 |
commit | 0621a279adfb981ea1f0564e7fc8280cda78e043 (patch) | |
tree | 9763ca0fde6d2ece1ba2e19a3146a9c9f905b195 /libstdc++/include/cstdio | |
parent | fa5755ae980b6f4ac5df37b263ba20f472db31ca (diff) | |
download | bionic-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/cstdio')
-rw-r--r-- | libstdc++/include/cstdio | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++/include/cstdio b/libstdc++/include/cstdio index d46a18b..3c8b5c6 100644 --- a/libstdc++/include/cstdio +++ b/libstdc++/include/cstdio @@ -36,6 +36,8 @@ #include <cstddef> #include <stdio.h> +extern "C++" { + namespace std { using ::FILE; using ::fpos_t; @@ -89,4 +91,6 @@ using ::vsnprintf; using ::vsscanf; } // namespace std +} // extern C++ + #endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDIO__ |