From 4b0b35f185c33d676c8859a72a614d88e5c17c1a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 20 Jan 2002 16:18:51 +0000 Subject: [PATCH] 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 --- src/common/utilscmn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ; -- 2.45.2