From: Stefan Csomor Date: Sun, 20 Jan 2002 16:18:51 +0000 (+0000) Subject: removed duplicate strdup definition for CW MSL V 7 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b0b35f185c33d676c8859a72a614d88e5c17c1a removed duplicate strdup definition for CW MSL V 7 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index a5e42a0eb1..9962127b6b 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -987,11 +987,12 @@ wxColour wxGetColourFromUser(wxWindow *parent, const wxColour& colInit) // ---------------------------------------------------------------------------- #ifdef __MWERKS__ +#if __MSL__ < 0x7000 char *strdup(const char *s) { return strcpy( (char*) malloc( strlen( s ) + 1 ) , s ) ; } - +#endif int isascii( int c ) { return ( c >= 0 && c < 128 ) ;