From: Stefan Csomor Date: Sun, 17 Aug 2003 12:00:28 +0000 (+0000) Subject: unicode wxMac CW fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f73bc315aac67f087106454a7f23a8a0d3a4bda2 unicode wxMac CW fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index da93fba635..c7e7a28ed9 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -331,9 +331,9 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const CFragSymbolClass symClass; Str255 symName; #if TARGET_CARBON - c2pstrcpy( (StringPtr) symName, name ); + c2pstrcpy( (StringPtr) symName, name.fn_str() ); #else - strcpy( (char *)symName, name ); + strcpy( (char *)symName, name.fn_str() ); c2pstr( (char *)symName ); #endif if( FindSymbol( m_handle, symName, &symAddress, &symClass ) == noErr ) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 991467af3c..80c870d8b8 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -196,7 +196,7 @@ const off_t wxInvalidOffset = (off_t)-1; // implementation // ============================================================================ -#if defined(__WXMAC__) && !defined(__DARWIN__) +#if defined(__WXMAC__) && !defined(__DARWIN__) && !defined(wxUSE_UNICODE) WXDLLEXPORT int wxStat( const wxChar *file_name, wxStructStat *buf ) { diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index a0fead86ba..d8772fce24 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -1205,7 +1205,7 @@ WXDLLEXPORT long int wxStrtol(const wxChar *nptr, wxChar **endptr, int base) } #endif // wxNEED_WX_STRING_H -#if defined(__WXMAC__) && !defined(__DARWIN__) +#if defined(__WXMAC__) && !defined(__DARWIN__) && !defined(wxUSE_UNICODE) WXDLLEXPORT FILE * wxFopen(const wxChar *path, const wxChar *mode) { return fopen( wxMacStringToCString(path), mode );