From 939fdcf6b767cd8beec43c46e43f576fed530e1a Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 7 Jan 2009 14:17:44 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.2