This is needed to build an independent toolchain with g++ that doesn't think
that all these headers are in C.
Change-Id: Ie9a8ccfcab7780d6a4e5722777d61c2b1b312001
#include <ctype.h>
+extern "C++" {
+
namespace std
{
using ::isalnum;
using ::toupper;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CCTYPE__
#include <cstddef>
#include <math.h>
+extern "C++" {
+
namespace std
{
// Functions.
using ::fmod;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CMATH__
#include <setjmp.h>
+extern "C++" {
+
#ifndef setjmp
#define setjmp(env) setjmp (env)
#endif
using ::longjmp;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSETJMP__
#include <signal.h>
+extern "C++" {
+
namespace std
{
using ::sig_atomic_t;
using ::raise;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSIGNAL__
*/
#include <stddef.h>
+extern "C++" {
+
namespace std {
using ::ptrdiff_t;
using ::size_t;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDDEF__
#include <cstddef>
#include <stdio.h>
+extern "C++" {
+
namespace std {
using ::FILE;
using ::fpos_t;
using ::vsscanf;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDIO__
*/
#include <stdlib.h>
+extern "C++" {
+
namespace std {
using ::exit;
using ::wcstombs;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDLIB__
#include <cstddef>
#include <string.h>
+extern "C++" {
+
namespace std
{
using ::memchr;
using ::strxfrm;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTRING__
#include <cstddef>
#include <time.h>
+extern "C++" {
+
namespace std
{
// Types.
using ::strftime;
} // namespace std
+} // extern C++
+
#endif // BIONIC_LIBSTDCPP_INCLUDE_CTIME__
#include <cstddef>
+extern "C++" {
+
namespace std {
struct nothrow_t {};
extern const nothrow_t nothrow;
inline void operator delete(void*, void*) { }
inline void operator delete[](void*, void*) { }
+} // extern C++
+
#endif // __NEW__
#ifndef _TYPEINFO_HEADER_GAURD
#define _TYPEINFO_HEADER_GAURD
+extern "C++" {
namespace std {
class type_info;
type_info & operator=(type_info const & right);
};
+} // C++
+
#endif