Ticket #40390: patch-wxWidgets30-compatibility-core.diff
File patch-wxWidgets30-compatibility-core.diff, 2.0 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
src/sdk/configmanager.cpp
old new 36 36 #endif 37 37 38 38 #ifdef __WXMAC__ 39 #if wxCHECK_VERSION(2,9,0) 40 #include "wx/osx/core/cfstring.h" 41 #else 39 42 #include "wx/mac/corefoundation/cfstring.h" 43 #endif 40 44 #include "wx/intl.h" 41 45 42 46 #include <CoreFoundation/CFBundle.h> … … 121 125 CFRelease(resourcesURL); 122 126 CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kCFURLPOSIXPathStyle); 123 127 CFRelease(absoluteURL); 124 wxString str = wxMacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 128 #if wxCHECK_VERSION(2,9,0) 129 wxString str = wxCFStringRef(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 130 #else 131 wxString str = wxMacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 132 #endif 125 133 if (!str.Contains(wxString(_T("/Resources")))) 126 134 return ::DetermineExecutablePath() + _T("/.."); // not a bundle, use relative path 127 135 return str; -
src/sdk/xtra_res.cpp
old new 15 15 #include <wx/wx.h> 16 16 #endif 17 17 18 #include <wx/xml/xml.h> 18 19 19 20 ///////////////////////////////////////////////////////////////////////////// 20 21 // Name: xh_toolb.cpp -
src/src/app.cpp
old new 271 271 END_EVENT_TABLE() 272 272 273 273 #ifdef __WXMAC__ 274 #if wxCHECK_VERSION(2,9,0) 275 #include "wx/osx/core/cfstring.h" 276 #else 274 277 #include "wx/mac/corefoundation/cfstring.h" 278 #endif 275 279 #include "wx/intl.h" 276 280 277 281 #include <CoreFoundation/CFBundle.h> … … 286 290 CFRelease(resourcesURL); 287 291 CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kCFURLPOSIXPathStyle); 288 292 CFRelease(absoluteURL); 289 return wxMacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 293 #if wxCHECK_VERSION(2,9,0) 294 return wxCFStringRef(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 295 #else 296 return wxMacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 297 #endif 290 298 } 291 299 #endif 292 300