Skip to content

Commit

Permalink
Add back declarations to kernel_cpp.h for GCC
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
  • Loading branch information
Midar authored and axeld committed Nov 7, 2015
1 parent 9b1ce43 commit 617793f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions headers/private/kernel/util/kernel_cpp.h
Expand Up @@ -22,6 +22,17 @@ extern const nothrow_t std::nothrow;
typedef struct {} mynothrow_t;
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 // __cplusplus
Expand Down

0 comments on commit 617793f

Please sign in to comment.