]> git.saurik.com Git - wxWidgets.git/commitdiff
removed duplicate strdup definition for CW MSL V 7
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 20 Jan 2002 16:18:51 +0000 (16:18 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 20 Jan 2002 16:18:51 +0000 (16:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index a5e42a0eb1048b756a77ccd791b3b80cd32f924d..9962127b6ba2cbdcec62033906cf61f30e2c7f7a 100644 (file)
@@ -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 ) ;