]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
Triued in vain to fix threads segvs with gcc
[wxWidgets.git] / include / wx / object.h
index b8051a90a3aa7cd94a9af8b5bf4e7beef26b5313..ca3ade770ab82e32a00c012a8e43eaabb1ccd322 100644 (file)
@@ -160,7 +160,10 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \
 
 #endif
 
-#define IS_KIND_OF(obj, className) obj->IsKindOf(&className::sm_class##className)
+#define wxIS_KIND_OF(obj, className) obj->IsKindOf(&className::sm_class##className)
+
+// Just seems a bit nicer-looking (pretend it's not a macro)
+#define wxIsKindOf(obj, className) obj->IsKindOf(&className::sm_class##className)
 
 // Unfortunately Borland seems to need this include.
 #ifdef __BORLANDC__
@@ -197,15 +200,18 @@ class WXDLLEXPORT wxObject
 #endif
 
   // Cause problems for VC++
-#ifndef _MSC_VER 
+// #ifndef _MSC_VER
+#if !defined(_MSC_VER) && wxUSE_ARRAY_MEMORY_OPERATORS
   void * operator new[] (size_t size, char * fileName = NULL, int lineNum = 0);
   void operator delete[] (void * buf);
 #endif
 
+/*
 #ifdef __MWERKS__
   void * operator new[] (size_t size, char * fileName  , int lineNum = 0);
   void operator delete[] (void * buf);
 #endif
+*/
 
 #endif