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) // (under Unix, configure tests for this)
#ifndef HAVE_BOOL #ifndef HAVE_BOOL
#if defined( __MWERKS__ ) #if defined( __MWERKS__ )
#if (__MWERKS__ >= 0x1000) && !__option(bool) #if (__MWERKS__ >= 0x1000) && __option(bool)
#define HAVE_BOOL #define HAVE_BOOL
#endif #endif
#elif defined(__VISUALC__) && (__VISUALC__ == 1020) #elif defined(__VISUALC__) && (__VISUALC__ == 1020)

View File

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

View File

@@ -32,7 +32,11 @@ class wxMimeTypesManagerImpl;
// the accessors *must* be checked! // the accessors *must* be checked!
class WXDLLEXPORT wxFileType class WXDLLEXPORT wxFileType
{ {
#ifdef __MWERKS__
friend class wxMimeTypesManagerImpl; // it has access to m_impl
#else
friend wxMimeTypesManagerImpl; // it has access to m_impl friend wxMimeTypesManagerImpl; // it has access to m_impl
#endif
public: public:
// An object of this class must be passed to Get{Open|Print}Command. The // 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 class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
{ {
friend wxTreeCtrl; #ifdef __MWERKS__
friend class wxTreeCtrl;
#else
friend wxTreeCtrl;
#endif
public: public:
wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);

View File

@@ -26,6 +26,12 @@
#ifdef __WXMSW__ #ifdef __WXMSW__
#include <ansi_prefix.win32.h> #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__) #elif defined( __WXMAC__)
#include <ansi_prefix.mac.h> #include <ansi_prefix.mac.h>
#endif #endif

View File

@@ -341,7 +341,7 @@ typedef unsigned char wxUChar;
#if !defined(wxStricmp) && !wxUSE_UNICODE #if !defined(wxStricmp) && !wxUSE_UNICODE
# if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__) # if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__)
# define wxStricmp stricmp # define wxStricmp stricmp
# elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS) && defined(__INTEL__)) # elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__))
# define wxStricmp _stricmp # define wxStricmp _stricmp
# elif defined(__UNIX__) || defined(__GNUWIN32__) # elif defined(__UNIX__) || defined(__GNUWIN32__)
# define wxStricmp strcasecmp # 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 #endif
#if wxUSE_IOSTREAMH #if wxUSE_IOSTREAMH
#if defined(__WXMSW__) && !defined(__GNUWIN32__) #if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__MWERKS__)
#include <strstrea.h> #include <strstrea.h>
#else #else
#include <strstream.h> #include <strstream.h>

View File

@@ -1,7 +1,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: paper.cpp // Name: paper.cpp
// Purpose: Paper size classes // Purpose: Paper size classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 04/01/98 // Created: 04/01/98
// RCS-ID: $Id$ // RCS-ID: $Id$

View File

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

View File

@@ -36,7 +36,9 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#ifndef __MWERKS__
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifndef __WINDOWS__ #ifndef __WINDOWS__
# include <unistd.h> # 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: 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 #ifndef HAVE_BOOL // Can't use bool operator if no native bool type
variant = (long) (oleVariant.bool != 0); variant = (long) (oleVariant.bool != 0);
#else #else