Add back declarations to kernel_cpp.h for GCC
Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Axel Dörfler
parent
9b1ce4307b
commit
617793f41b
@@ -22,6 +22,17 @@ extern const nothrow_t std::nothrow;
|
|||||||
typedef struct {} mynothrow_t;
|
typedef struct {} mynothrow_t;
|
||||||
extern const mynothrow_t mynothrow;
|
extern const mynothrow_t mynothrow;
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
|
extern void* operator new(size_t size) throw (std::bad_alloc);
|
||||||
|
extern void* operator new[](size_t size) throw (std::bad_alloc);
|
||||||
|
extern void* operator new(size_t size, const std::nothrow_t &) throw ();
|
||||||
|
extern void* operator new[](size_t size, const std::nothrow_t &) throw ();
|
||||||
|
extern void* operator new(size_t size, const mynothrow_t &) throw ();
|
||||||
|
extern void* operator new[](size_t size, const mynothrow_t &) throw ();
|
||||||
|
extern void operator delete(void *ptr) throw ();
|
||||||
|
extern void operator delete[](void *ptr) throw ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // #if _KERNEL_MODE
|
#endif // #if _KERNEL_MODE
|
||||||
|
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user