compilation fix for IBM xlC (closes 1230392)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-07-29 19:44:17 +00:00
parent 3832f94664
commit b7146cbec5
2 changed files with 12 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ All:
- Added new methods to wxMediaCtrl (wxURI version of Load, ShowPlayerControls)
- Added wxZipFSHandler::Cleanup() (Stas Sergeev)
- Added wxImage::RotateHue() and RGB <-> HSV conversions (John Anderson)
- Fixed compilation with IBM xlC compiler
All (GUI):

View File

@@ -1274,6 +1274,17 @@ public:
{ return (wxString&)wxStringBase::operator+=(ch); }
};
// IBM xlC compiler needs these operators to be declared in global scope,
// although this shouldn't be a problem for the other compilers we prefer to
// only do it for it in stable 2.6 branch
#ifdef __IBMCPP__
wxString WXDLLIMPEXP_BASE operator+(const wxString& string1, const wxString& string2);
wxString WXDLLIMPEXP_BASE operator+(const wxString& string, wxChar ch);
wxString WXDLLIMPEXP_BASE operator+(wxChar ch, const wxString& string);
wxString WXDLLIMPEXP_BASE operator+(const wxString& string, const wxChar *psz);
wxString WXDLLIMPEXP_BASE operator+(const wxChar *psz, const wxString& string);
#endif // __IBMCPP__
// define wxArrayString, for compatibility
#if WXWIN_COMPATIBILITY_2_4 && !wxUSE_STL
#include "wx/arrstr.h"