- Added declaration and definition of std::nothrow
- Wrapped everything but #includes in #if _KERNEL_MODE to keep from redeclaring/definining operator new and nothrow in userland. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5921 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,9 +10,10 @@
|
||||
#include <new>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if _KERNEL_MODE
|
||||
|
||||
using namespace std;
|
||||
|
||||
extern const nothrow_t std::nothrow;
|
||||
|
||||
// Oh no! C++ in the kernel! Are you nuts?
|
||||
//
|
||||
@@ -72,5 +73,6 @@ operator delete[](void *ptr) throw ()
|
||||
// we're using virtuals
|
||||
extern "C" void __pure_virtual();
|
||||
|
||||
#endif // #if _KERNEL_MODE
|
||||
|
||||
#endif /* CPP_H */
|
||||
|
||||
Reference in New Issue
Block a user