summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:02:44 +0000
committerfcolin2007-02-01 13:02:44 +0000
commit0932419feeffc111b28762c490adfd6054f372e3 (patch)
treea957daa687a17d780053214829df77ebfbcac7d3 /Ivy
parent7960d649075ff2ee8d74ff8d9f8745408f52b9b4 (diff)
downloadivy-cplusplus-0932419feeffc111b28762c490adfd6054f372e3.zip
ivy-cplusplus-0932419feeffc111b28762c490adfd6054f372e3.tar.gz
ivy-cplusplus-0932419feeffc111b28762c490adfd6054f372e3.tar.bz2
ivy-cplusplus-0932419feeffc111b28762c490adfd6054f372e3.tar.xz
Utilisateur : Fcolin Date : 20/02/01 Heure : 10:27 Archivé dans $/Ivy (vss 9)
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/IvyStdAfx.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/Ivy/IvyStdAfx.h b/Ivy/IvyStdAfx.h
index b197ad7..9bb291c 100644
--- a/Ivy/IvyStdAfx.h
+++ b/Ivy/IvyStdAfx.h
@@ -46,7 +46,7 @@ struct ip_mreq {
#endif
#ifndef UNDER_CE
-//#define STL
+#define STL
#endif
#ifdef STL
#include <string>
@@ -90,9 +90,16 @@ void DebugTrace ( const char *fmt , ... );
#define ASSERT(expr) assert( expr )
#endif
-#ifdef WIN32
+#if defined( WIN32 ) && (!defined(UNDER_CE))
+#include <crtdbg.h>
-void* __cdecl operator new(size_t nSize, const char * lpszFileName, int nLine);
-void __cdecl operator delete(void *p, const char * lpszFileName, int nLine);
+inline void* __cdecl operator new(size_t nSize, const char * lpszFileName, int nLine)
+ {
+ return ::operator new(nSize, _NORMAL_BLOCK, lpszFileName, nLine);
+ }
+inline void __cdecl operator delete(void *p, const char * lpszFileName, int nLine)
+ {
+ ::operator delete(p, _NORMAL_BLOCK, lpszFileName, nLine);
+ }
-#endif \ No newline at end of file
+#endif