X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fabb57533169f2f75367e0d120c762518548890..c23894955325535bf603be74a3c0dc8d3fce65ab:/include/wx/memory.h?ds=inline diff --git a/include/wx/memory.h b/include/wx/memory.h index c6ee00a4e0..8f4d7a1270 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -53,14 +53,25 @@ void wxDebugFree(void * buf, bool isVect = FALSE); #undef new #endif +#if defined(__SUNCC__) +#define wxUSE_ARRAY_MEMORY_OPERATORS 0 +#elif !( defined (_MSC_VER) && (_MSC_VER <= 1020) ) || defined( __MWERKS__) +#define wxUSE_ARRAY_MEMORY_OPERATORS 1 +#else +#define wxUSE_ARRAY_MEMORY_OPERATORS 0 +#endif + // Added JACS 25/11/98: needed for some compilers void * operator new (size_t size); + +#if wxUSE_ARRAY_MEMORY_OPERATORS void * operator new[] (size_t size); +#endif void * operator new (size_t size, char * fileName, int lineNum); void operator delete (void * buf); -#if !( defined (_MSC_VER) && (_MSC_VER <= 1020) ) +#if wxUSE_ARRAY_MEMORY_OPERATORS void * operator new[] (size_t size, char * fileName, int lineNum); void operator delete[] (void * buf); #endif