summaryrefslogtreecommitdiffstats
path: root/libstdc++/include/ctime
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/ctime
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/ctime')
-rw-r--r--libstdc++/include/ctime4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++/include/ctime b/libstdc++/include/ctime
index 36fe7d5..9e6744f 100644
--- a/libstdc++/include/ctime
+++ b/libstdc++/include/ctime
@@ -37,6 +37,8 @@
#include <cstddef>
#include <time.h>
+extern "C++" {
+
namespace std
{
// Types.
@@ -56,4 +58,6 @@ using ::localtime;
using ::strftime;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CTIME__