CW Pro 5 Adaptions (the .old.mcp are the Pro 4 Files)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
1999-08-20 15:36:30 +00:00
parent d9bd149456
commit 585ae8cbc0
15 changed files with 29 additions and 6 deletions

View File

@@ -239,7 +239,7 @@
// (under Unix, configure tests for this)
#ifndef HAVE_BOOL
#if defined( __MWERKS__ )
#if (__MWERKS__ >= 0x1000) && !__option(bool)
#if (__MWERKS__ >= 0x1000) && __option(bool)
#define HAVE_BOOL
#endif
#elif defined(__VISUALC__) && (__VISUALC__ == 1020)

View File

@@ -281,7 +281,11 @@ public:
}
private:
#ifdef __MWERKS__
friend class wxSplitterWindow;
#else
friend wxSplitterWindow;
#endif
// data for the different types of event
union

View File

@@ -32,7 +32,11 @@ class wxMimeTypesManagerImpl;
// the accessors *must* be checked!
class WXDLLEXPORT wxFileType
{
#ifdef __MWERKS__
friend class wxMimeTypesManagerImpl; // it has access to m_impl
#else
friend wxMimeTypesManagerImpl; // it has access to m_impl
#endif
public:
// An object of this class must be passed to Get{Open|Print}Command. The

View File

@@ -41,7 +41,12 @@
class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
{
#ifdef __MWERKS__
friend class wxTreeCtrl;
#else
friend wxTreeCtrl;
#endif
public:
wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);

View File

@@ -26,6 +26,12 @@
#ifdef __WXMSW__
#include <ansi_prefix.win32.h>
#include <ansi_parms.h>
#if defined( __MSL__ ) && __MSL__ >= 0x5012
#define fileno _fileno
#define fdopen _fdopen
#define tell _tell
#endif
#elif defined( __WXMAC__)
#include <ansi_prefix.mac.h>
#endif

View File

@@ -341,7 +341,7 @@ typedef unsigned char wxUChar;
#if !defined(wxStricmp) && !wxUSE_UNICODE
# if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__)
# define wxStricmp stricmp
# elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS) && defined(__INTEL__))
# elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__))
# define wxStricmp _stricmp
# elif defined(__UNIX__) || defined(__GNUWIN32__)
# define wxStricmp strcasecmp

BIN
samples/forty/make_cw.mcp Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -28,7 +28,7 @@
#endif
#if wxUSE_IOSTREAMH
#if defined(__WXMSW__) && !defined(__GNUWIN32__)
#if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__MWERKS__)
#include <strstrea.h>
#else
#include <strstream.h>

View File

@@ -36,7 +36,9 @@
#include <stdio.h>
#include <ctype.h>
#ifndef __MWERKS__
#include <sys/stat.h>
#endif
#ifndef __WINDOWS__
#include <unistd.h>

View File

@@ -36,7 +36,9 @@
#include <stdio.h>
#include <ctype.h>
#ifndef __MWERKS__
#include <sys/stat.h>
#endif
#ifndef __WINDOWS__
# include <unistd.h>

Binary file not shown.

BIN
src/make_cw.old.mcp Normal file

Binary file not shown.

View File

@@ -667,7 +667,7 @@ bool ConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
case VT_BOOL:
{
#if defined(__WATCOMC__) || (defined(_MSC_VER) && (_MSC_VER <= 1000)) //GC
#if defined(__WATCOMC__) || (defined(_MSC_VER) && (_MSC_VER <= 1000) && !defined(__MWERKS__) ) //GC
#ifndef HAVE_BOOL // Can't use bool operator if no native bool type
variant = (long) (oleVariant.bool != 0);
#else