// Use the global heap for this process for all allocate/free operations.\r
#include "inspircd_win32wrapper.h"\r
#include <exception>\r
+#include <new>\r
+#include <new.h>\r
\r
void * ::operator new(size_t iSize)\r
{\r
/* This is the correct behaviour according to C++ standards for out of memory,\r
* not returning null -- Brain*/\r
if (!ptr)\r
- throw std::bad_alloc;\r
+ throw std::bad_alloc();\r
else\r
return ptr;\r
}\r