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/new | |
| 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/new')
| -rw-r--r-- | libstdc++/include/new | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++/include/new b/libstdc++/include/new index 19d8185..0253e8b 100644 --- a/libstdc++/include/new +++ b/libstdc++/include/new @@ -4,6 +4,8 @@ #include <cstddef> +extern "C++" { + namespace std { struct nothrow_t {}; extern const nothrow_t nothrow; @@ -25,4 +27,6 @@ inline void* operator new[](std::size_t, void* p) { return p; } inline void operator delete(void*, void*) { } inline void operator delete[](void*, void*) { } +} // extern C++ + #endif // __NEW__ |
