summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-27 01:31:41 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-27 01:31:41 +0000
commit2b260de0f3727bc62519897f69d6f752c97d8502 (patch)
tree549e627839f07c068a424e2dddf0617b9e86466d /globals.c
parentdff6d3cd91bb8f94ad6445629f3bfb07c761a04e (diff)
downloadperl-2b260de0f3727bc62519897f69d6f752c97d8502.tar.gz
more GCC v2.95 induced adjustments
p4raw-id: //depot/perl@4462
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/globals.c b/globals.c
index 9777273ee6..8e19d22a26 100644
--- a/globals.c
+++ b/globals.c
@@ -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