X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..2a4f4a27732a6d8deb8b006c73cca9d7105fe92c:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index b11e323e69..8da110ce98 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -13,7 +13,7 @@ #define __OBJECTH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "object.h" #endif #include "wx/defs.h" @@ -130,7 +130,7 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \ #ifdef USE_STORABLE_CLASSES #define IMPLEMENT_STORABLE_CLASS(name, basename) \ -wxObject* WXDLLEXPORT_CTORFN wxStorableConstructorFor##name( fstream* stream, char* data )\ +wxObject* WXDLLEXPORT_CTORFN wxStorableConstructorFor##name( istream* stream, char* data )\ { return new name( stream, data ); }\ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void)\ { return new name; }\ @@ -138,7 +138,7 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void)\ wxStorableConstructorFor##name ); #define IMPLEMENT_STORABLE_CLASS2(name, basename1, basename2) \ -wxObject* WXDLLEXPORT_CTORFN wxStorableConstructorFor##name( fstream* stream, char* data )\ +wxObject* WXDLLEXPORT_CTORFN wxStorableConstructorFor##name( istream* stream, char* data )\ { return new name( stream, data ); }\ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void)\ { return new name; }\ @@ -206,7 +206,7 @@ class WXDLLEXPORT wxObject bool IsKindOf(wxClassInfo *info); -#if DEBUG && USE_MEMORY_TRACING +#if WXDEBUG && USE_MEMORY_TRACING void * operator new (size_t size, char * fileName = NULL, int lineNum = 0); void operator delete (void * buf); @@ -218,7 +218,7 @@ class WXDLLEXPORT wxObject #endif -#if DEBUG || USE_DEBUG_CONTEXT +#if WXDEBUG || USE_DEBUG_CONTEXT virtual void Dump(ostream& str); #endif @@ -256,7 +256,7 @@ private: int m_count; }; -#if DEBUG && USE_GLOBAL_MEMORY_OPERATORS +#if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS #ifndef WXDEBUG_NEW #define WXDEBUG_NEW new(__FILE__,__LINE__) #endif