Generalized compilation fix for old compilers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,7 +54,7 @@ public:
|
|||||||
wxBitmap( int width, int height, int depth = -1 );
|
wxBitmap( int width, int height, int depth = -1 );
|
||||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||||
wxBitmap( const char* const* bits );
|
wxBitmap( const char* const* bits );
|
||||||
#if defined (__GNUC__) && __GNUC__ < 3
|
#ifdef wxNEEDS_CHARPP
|
||||||
// needed for old GCC
|
// needed for old GCC
|
||||||
wxBitmap(char** data)
|
wxBitmap(char** data)
|
||||||
{
|
{
|
||||||
|
@@ -68,7 +68,7 @@ public:
|
|||||||
wxBitmap( int width, int height, int depth = -1 );
|
wxBitmap( int width, int height, int depth = -1 );
|
||||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||||
wxBitmap( const char* const* bits );
|
wxBitmap( const char* const* bits );
|
||||||
#if defined (__GNUC__) && __GNUC__ < 3
|
#ifdef wxNEEDS_CHARPP
|
||||||
// needed for old GCC
|
// needed for old GCC
|
||||||
wxBitmap(char** data)
|
wxBitmap(char** data)
|
||||||
{
|
{
|
||||||
|
@@ -45,8 +45,7 @@ public:
|
|||||||
|
|
||||||
// Initialize with XPM data
|
// Initialize with XPM data
|
||||||
wxBitmap(const char* const* data);
|
wxBitmap(const char* const* data);
|
||||||
#if defined(__BORLANDC__) || (defined (__GNUC__) && __GNUC__ < 3)
|
#ifdef wxNEEDS_CHARPP
|
||||||
// needed for Borland 5.5
|
|
||||||
wxBitmap(char** data)
|
wxBitmap(char** data)
|
||||||
{
|
{
|
||||||
*this = wxBitmap(wx_const_cast(const char* const*, data));
|
*this = wxBitmap(wx_const_cast(const char* const*, data));
|
||||||
|
@@ -86,7 +86,7 @@ public:
|
|||||||
|
|
||||||
// Initialize with XPM data
|
// Initialize with XPM data
|
||||||
wxBitmap(const char* const* bits);
|
wxBitmap(const char* const* bits);
|
||||||
#if defined (__GNUC__) && __GNUC__ < 3
|
#ifdef wxNEEDS_CHARPP
|
||||||
// needed for old GCC
|
// needed for old GCC
|
||||||
wxBitmap(char** data)
|
wxBitmap(char** data)
|
||||||
{
|
{
|
||||||
|
@@ -535,6 +535,10 @@
|
|||||||
#define wxCHECK_GCC_VERSION( major, minor ) 0
|
#define wxCHECK_GCC_VERSION( major, minor ) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__) || (defined(__GNUC__) && __GNUC__ < 3)
|
||||||
|
#define wxNEEDS_CHARPP
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This macro can be used to check that the version of mingw32 compiler is
|
This macro can be used to check that the version of mingw32 compiler is
|
||||||
at least maj.min
|
at least maj.min
|
||||||
|
@@ -74,7 +74,7 @@ public:
|
|||||||
wxBitmap( int width, int height, int depth = -1 );
|
wxBitmap( int width, int height, int depth = -1 );
|
||||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||||
wxBitmap( const char* const* bits );
|
wxBitmap( const char* const* bits );
|
||||||
#if defined (__GNUC__) && __GNUC__ < 3
|
#ifdef wxNEEDS_CHARPP
|
||||||
// needed for old GCC
|
// needed for old GCC
|
||||||
wxBitmap(char** data)
|
wxBitmap(char** data)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user