diff options
Diffstat (limited to 'globals.c')
-rw-r--r-- | globals.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -37,8 +37,10 @@ CPerlObj::operator new(size_t nSize, IPerlMem *pvtbl) { if(pvtbl) return pvtbl->pMalloc(pvtbl, nSize); - +#ifndef __MINGW32__ + /* operator new is supposed to throw std::bad_alloc */ return NULL; +#endif } void |