#endif
#include "wx/defs.h"
+#include "wx/string.h"
/*
The macro which will be expanded to include the file and line number
# endif
#endif
-#include "wx/string.h"
-
#ifdef __WXDEBUG__
void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, 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
#endif
#endif
+ // wxUSE_GLOBAL_MEMORY_OPERATORS
#endif
+ // __WXDEBUG__
typedef unsigned int wxMarkerType;