#ifndef WX_PRECOMP
#include "wx/hash.h"
-#ifdef USE_SERIAL
+#ifdef wxUSE_SERIAL
#include "wx/objstrm.h"
#include "wx/serbase.h"
#endif
#include <string.h>
#include <assert.h>
-#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT
+#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#include "wx/memory.h"
#endif
-#if WXDEBUG || USE_DEBUG_CONTEXT
+#if WXDEBUG || wxUSE_DEBUG_CONTEXT
// for wxObject::Dump
- #include <iostream.h>
+#if wxUSE_IOSTREAMH
+# include <iostream.h>
+#else
+# include <iostream>
+# ifdef _MSC_VER
+ using namespace std;
+# endif
+#endif
#endif
#if !USE_SHARED_LIBRARY
wxObject::wxObject(void)
{
m_refData = (wxObjectRefData *) NULL;
-#ifdef USE_SERIAL
+#ifdef wxUSE_SERIAL
m_serialObj = (wxObject_Serialize *)NULL;
#endif
}
wxObject::~wxObject(void)
{
UnRef();
-#ifdef USE_SERIAL
+#ifdef wxUSE_SERIAL
if (m_serialObj)
delete m_serialObj;
#endif
return FALSE;
}
-#if WXDEBUG || USE_DEBUG_CONTEXT
+#if WXDEBUG || wxUSE_DEBUG_CONTEXT
void wxObject::Dump(ostream& str)
{
if (GetClassInfo() && GetClassInfo()->GetClassName())
}
#endif
-#if WXDEBUG && USE_MEMORY_TRACING
+#if WXDEBUG && wxUSE_MEMORY_TRACING
#ifdef new
#undef new
// VC++ 6.0
#if _MSC_VER >= 1200
-void operator delete(void* pData, char* /* fileName */, int /* lineNum */)
+void operator wxObject::delete(void* pData, char* /* fileName */, int /* lineNum */)
{
::operator delete(pData);
}
return (wxObject*) NULL;
}
-#ifdef USE_SERIAL
+#ifdef wxUSE_SERIAL
#include "wx/serbase.h"
#include "wx/dynlib.h"