1/* -*- c++ -*- */
2#ifndef __NEW__
3#define __NEW__
4
5#include <cstddef>
6
7extern "C++" {
8
9namespace std {
10    struct nothrow_t {};
11    extern const nothrow_t nothrow;
12}
13
14void* operator new(std::size_t);
15void* operator new[](std::size_t);
16void  operator delete(void*);
17void  operator delete[](void*);
18void* operator new(std::size_t, const std::nothrow_t&);
19void* operator new[](std::size_t, const std::nothrow_t&);
20void  operator delete(void*, const std::nothrow_t&);
21void  operator delete[](void*, const std::nothrow_t&);
22
23inline void* operator new(std::size_t, void* p) { return p; }
24inline void* operator new[](std::size_t, void* p) { return p; }
25
26// these next two are not really required, since exceptions are off
27inline void  operator delete(void*, void*) { }
28inline void  operator delete[](void*, void*) { }
29
30}  // extern C++
31
32#endif // __NEW__
33