// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows license
+// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#ifndef WX_PRECOMP
#include "wx/hash.h"
- #ifdef wxUSE_SERIAL
+ #if wxUSE_SERIAL
#include "wx/objstrm.h"
#include "wx/serbase.h"
#endif
#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
- // for wxObject::Dump
-#if wxUSE_IOSTREAMH
-# include <iostream.h>
-#else
-# include <iostream>
-# ifdef _MSC_VER
- using namespace std;
-# endif
-#endif
+ // for wxObject::Dump
+ #include "wx/ioswrap.h"
#endif
#if !USE_SHARED_LIBRARY
wxObject::wxObject(void)
{
m_refData = (wxObjectRefData *) NULL;
-#ifdef wxUSE_SERIAL
+#if wxUSE_SERIAL
m_serialObj = (wxObject_Serialize *)NULL;
#endif
}
wxObject::~wxObject(void)
{
UnRef();
-#ifdef wxUSE_SERIAL
+#if wxUSE_SERIAL
if (m_serialObj)
delete m_serialObj;
#endif
}
// VC++ 6.0
-#if _MSC_VER >= 1200
+#if defined(__VISUALC__) && (__VISUALC__ >= 1200)
void wxObject::operator delete(void* pData, char* /* fileName */, int /* lineNum */)
{
::operator delete(pData);
#endif
// Cause problems for VC++ - crashes
-#if !defined(_MSC_VER) && wxUSE_ARRAY_MEMORY_OPERATORS
+#if !defined(__VISUALC__) && wxUSE_ARRAY_MEMORY_OPERATORS
void * wxObject::operator new[] (size_t size, char * fileName, int lineNum)
{
return wxDebugAlloc(size, fileName, lineNum, TRUE, TRUE);
return (wxObject*) NULL;
}
-#ifdef wxUSE_SERIAL
+#if wxUSE_SERIAL
#include "wx/serbase.h"
#include "wx/dynlib.h"