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:
@@ -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
|
// where should i put this? we need to make sure of this as it breaks
|
||||||
// the <iostream> code.
|
// the <iostream> code.
|
||||||
#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
|
#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
|
||||||
|
#ifndef __MWERKS__
|
||||||
#undef __WXDEBUG__
|
#undef __WXDEBUG__
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Callback function type definition
|
// Callback function type definition
|
||||||
typedef void (*wxFunction) (wxObject&, wxEvent&);
|
typedef void (*wxFunction) (wxObject&, wxEvent&);
|
||||||
|
@@ -30,8 +30,13 @@ public:
|
|||||||
wxDC(void);
|
wxDC(void);
|
||||||
~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::BeginDrawing(void) {}
|
||||||
inline void wxDC::EndDrawing(void) {}
|
inline void wxDC::EndDrawing(void) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void FloodFill(long x1, long y1, const wxColour& col, int style=wxFLOOD_SURFACE) ;
|
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)
|
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
|
// 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 ;
|
int wxDC::GetDepth(void) const ;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Implementation
|
// Implementation
|
||||||
virtual void SetRop(WXHDC cdc);
|
virtual void SetRop(WXHDC cdc);
|
||||||
|
@@ -133,11 +133,16 @@
|
|||||||
#define wxUSE_ODBC 1
|
#define wxUSE_ODBC 1
|
||||||
// Define 1 to use ODBC classes
|
// Define 1 to use ODBC classes
|
||||||
|
|
||||||
|
#ifndef __MWERKS__
|
||||||
#define wxUSE_IOSTREAMH 1
|
#define wxUSE_IOSTREAMH 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_IOSTREAMH 0
|
||||||
|
#endif
|
||||||
// VC++ 4.2 and above allows <iostream> and <iostream.h>
|
// VC++ 4.2 and above allows <iostream> and <iostream.h>
|
||||||
// but you can't mix them. Set to 1 for <iostream.h>,
|
// but you can't mix them. Set to 1 for <iostream.h>,
|
||||||
// 0 for <iostream>
|
// 0 for <iostream>
|
||||||
|
|
||||||
|
|
||||||
#define wxUSE_WXCONFIG 1
|
#define wxUSE_WXCONFIG 1
|
||||||
// if enabled, compiles built-in OS independent wxConfig
|
// if enabled, compiles built-in OS independent wxConfig
|
||||||
// class and it's file (any platform) and registry (Win)
|
// class and it's file (any platform) and registry (Win)
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifdef __GNUWIN32__
|
#if defined( __GNUWIN32__ ) || defined(__MWERKS__)
|
||||||
#include <wx/msw/gnuwin32/winresrc.h>
|
#include <wx/msw/gnuwin32/winresrc.h>
|
||||||
#else
|
#else
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@@ -18,6 +18,8 @@
|
|||||||
#error "this file is only for builds with Metrowerks CodeWarrior"
|
#error "this file is only for builds with Metrowerks CodeWarrior"
|
||||||
#endif
|
#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
|
#if (__MWERKS__ < 0x0900) || macintosh
|
||||||
#define __MAC__
|
#define __MAC__
|
||||||
#define __WXMAC__
|
#define __WXMAC__
|
||||||
@@ -41,12 +43,18 @@
|
|||||||
#error unknown MW compiler
|
#error unknown MW compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __WXDEBUG__ 1
|
#define __WXDEBUG__
|
||||||
#define WXDEBUG 1
|
#define USE_DEFINE
|
||||||
|
|
||||||
// in order to avoid problems further down in wxWindows
|
// in order to avoid problems further down in wxWindows
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
char *strdup(const char *s) ;
|
char *strdup(const char *s) ;
|
||||||
|
int isascii( int c ) ;
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} ;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
// _WX_CW__
|
// _WX_CW__
|
||||||
|
Reference in New Issue
Block a user