CW Win32 support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 1998-12-21 08:36:48 +00:00
parent 1e6d94998f
commit 518f33a4e5
5 changed files with 30 additions and 6 deletions

View File

@ -311,8 +311,10 @@ WXDLLEXPORT_DATA(extern const bool) wxFalse;
// where should i put this? we need to make sure of this as it breaks
// the <iostream> code.
#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
#ifndef __MWERKS__
#undef __WXDEBUG__
#endif
#endif
// Callback function type definition
typedef void (*wxFunction) (wxObject&, wxEvent&);

View File

@ -30,8 +30,13 @@ public:
wxDC(void);
~wxDC(void);
#ifdef WX_COMP_INLINE_NO_CLASS
inline void BeginDrawing(void) {}
inline void EndDrawing(void) {}
#else
inline void wxDC::BeginDrawing(void) {}
inline void wxDC::EndDrawing(void) {}
#endif
virtual void FloodFill(long x1, long y1, const wxColour& col, int style=wxFLOOD_SURFACE) ;
inline void FloodFill(const wxPoint& pt, const wxColour& col, int style=wxFLOOD_SURFACE)
@ -265,7 +270,11 @@ public:
}
// This should probably be made available on other platforms
#ifdef WX_COMP_INLINE_NO_CLASS
int GetDepth(void) const ;
#else
int wxDC::GetDepth(void) const ;
#endif
// Implementation
virtual void SetRop(WXHDC cdc);

View File

@ -133,11 +133,16 @@
#define wxUSE_ODBC 1
// Define 1 to use ODBC classes
#ifndef __MWERKS__
#define wxUSE_IOSTREAMH 1
#else
#define wxUSE_IOSTREAMH 0
#endif
// VC++ 4.2 and above allows <iostream> and <iostream.h>
// but you can't mix them. Set to 1 for <iostream.h>,
// 0 for <iostream>
#define wxUSE_WXCONFIG 1
// if enabled, compiles built-in OS independent wxConfig
// class and it's file (any platform) and registry (Win)

View File

@ -29,7 +29,7 @@
//
//
#ifdef __GNUWIN32__
#if defined( __GNUWIN32__ ) || defined(__MWERKS__)
#include <wx/msw/gnuwin32/winresrc.h>
#else
#include <windows.h>

View File

@ -18,6 +18,8 @@
#error "this file is only for builds with Metrowerks CodeWarrior"
#endif
#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
#if (__MWERKS__ < 0x0900) || macintosh
#define __MAC__
#define __WXMAC__
@ -41,12 +43,18 @@
#error unknown MW compiler
#endif
#define __WXDEBUG__ 1
#define WXDEBUG 1
#define __WXDEBUG__
#define USE_DEFINE
// in order to avoid problems further down in wxWindows
#ifdef __cplusplus
extern "C"
{
#endif
char *strdup(const char *s) ;
int isascii( int c ) ;
#ifdef __cplusplus
} ;
#endif
#endif
// _WX_CW__