From: Francesco Montorsi Date: Wed, 7 Jan 2009 14:17:44 +0000 (+0000) Subject: MYcopystring is not required anymore when compat2.8 is off X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/939fdcf6b767cd8beec43c46e43f576fed530e1a MYcopystring is not required anymore when compat2.8 is off git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index fa231134e5..1406932e2a 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -294,9 +294,10 @@ wxString wxPathList::FindAbsoluteValidPath (const wxString& file) const } // ---------------------------------------------------------------------------- -// miscellaneous global functions (TOFIX!) +// miscellaneous global functions // ---------------------------------------------------------------------------- +#if WXWIN_COMPATIBILITY_2_8 static inline wxChar* MYcopystring(const wxString& s) { wxChar* copy = new wxChar[s.length() + 1]; @@ -309,6 +310,7 @@ static inline CharType* MYcopystring(const CharType* s) CharType* copy = new CharType[wxStrlen(s) + 1]; return wxStrcpy(copy, s); } +#endif bool