summaryrefslogtreecommitdiff
path: root/Ivy/IvyStdAfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyStdAfx.h')
-rw-r--r--Ivy/IvyStdAfx.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Ivy/IvyStdAfx.h b/Ivy/IvyStdAfx.h
index 9bb291c..e335332 100644
--- a/Ivy/IvyStdAfx.h
+++ b/Ivy/IvyStdAfx.h
@@ -91,8 +91,10 @@ void DebugTrace ( const char *fmt , ... );
#endif
#if defined( WIN32 ) && (!defined(UNDER_CE))
-#include <crtdbg.h>
+#include <crtdbg.h>
+#ifndef DEBUG_NEW_OP
+#define DEBUG_NEW_OP
inline void* __cdecl operator new(size_t nSize, const char * lpszFileName, int nLine)
{
return ::operator new(nSize, _NORMAL_BLOCK, lpszFileName, nLine);
@@ -101,5 +103,6 @@ inline void __cdecl operator delete(void *p, const char * lpszFileName, int nLin
{
::operator delete(p, _NORMAL_BLOCK, lpszFileName, nLine);
}
+#endif
#endif