applied patch to build wxMSW with CW7 (patch 550445)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-09 22:34:44 +00:00
parent 7cf46fdb3e
commit ba14d9861d
32 changed files with 30658 additions and 41 deletions

View File

@@ -309,7 +309,7 @@ GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path);
GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf);
#ifdef __cplusplus
};
}
#endif /* __cplusplus */

View File

@@ -115,8 +115,8 @@ inline void operator delete[] (void * buf)
}
#endif
// VC++ 6.0
#if defined(__VISUALC__) && (__VISUALC__ >= 1200)
// VC++ 6.0 and MWERKS
#if ( defined(__VISUALC__) && (__VISUALC__ >= 1200) ) || defined(__MWERKS__)
inline void operator delete(void* pData, wxChar* /* fileName */, int /* lineNum */)
{
wxDebugFree(pData, FALSE);

View File

@@ -36,7 +36,7 @@ public:
// override some base class virtuals
virtual void SetTitle(const wxString& title);
virtual wxString GetTitle();
virtual wxString GetTitle() const;
virtual int ShowModal();

View File

@@ -126,7 +126,7 @@ bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount);
// VZ: I don't know it's not done for compilers other than VC++ but I leave it
// as is. Please note, though, that tracing OLE interface calls may be
// incredibly useful when debugging OLE programs.
#if defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ >= 1000)
#if defined(__WXDEBUG__) && ( ( defined(__VISUALC__) && (__VISUALC__ >= 1000) ) || defined(__MWERKS__) )
// ----------------------------------------------------------------------------
// All OLE specific log functions have DebugTrace level (as LogTrace)
// ----------------------------------------------------------------------------

View File

@@ -129,7 +129,7 @@
// In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If
// this causes problems (e.g. link errors), set this to 0. You may need to set
// this to 0 if using templates (at least for VC++). This switch is currently
// ignored for mingw / cygwin
// ignored for mingw / cygwin / CodeWarrior
//
// Default is 0
//
@@ -1056,6 +1056,12 @@
#endif
#endif
// wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
#if defined(__MWERKS__)
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
#endif
#if defined(__GNUWIN32__)
// These don't work as expected for mingw32 and cygwin32
#undef wxUSE_MEMORY_TRACING

View File

@@ -14,9 +14,12 @@
#define __MAC__
#define __WXMAC__
#elif (__MWERKS__ >= 0x0900) && __INTEL__
#define WIN32
#define _WINDOWS
#define __WXMSW__
#define __WINDOWS__
#define __WIN95__
#define __WIN32__
#define STRICT
#define NOMINMAX
#elif __BEOS__
@@ -30,7 +33,7 @@
#include <ansi_prefix.win32.h>
#include <ansi_parms.h>
#ifdef __MWERKS__
#if defined( __MSL__ ) && __MSL__ >= 0x5012
#if defined( __MSL__ ) && __MSL__ >= 0x5012 && __MSL__ < 0x7000
#define fileno _fileno
#define fdopen _fdopen
#define tell _tell
@@ -66,6 +69,6 @@ extern "C"
char *strdup(const char *s) ;
int isascii( int c ) ;
#ifdef __cplusplus
} ;
}
#endif

View File

@@ -14,7 +14,7 @@
// check if to use precompiled headers: do it for most Windows compilers unless
// explicitly disabled by defining NOPCH
#if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__)
#if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__) || defined(__MWERKS__)
#if !defined(NOPCH)
#define WX_PRECOMP
#endif