X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25f49256ac6682a358e461036ec64aad1b26e353..66f75561893ea7b4bf429d1882d9cc0407ba932d:/src/osx/core/utilsexc_cf.cpp?ds=sidebyside diff --git a/src/osx/core/utilsexc_cf.cpp b/src/osx/core/utilsexc_cf.cpp index d503bd5975..95f8bd51d2 100644 --- a/src/osx/core/utilsexc_cf.cpp +++ b/src/osx/core/utilsexc_cf.cpp @@ -116,3 +116,19 @@ wxStandardPaths& wxGUIAppTraits::GetStandardPaths() } #endif +#if wxUSE_SOCKETS + +// we need to implement this method in a file of the core library as it should +// only be used for the GUI applications but we can't use socket stuff from it +// directly as this would create unwanted dependencies of core on net library +// +// so we have this global pointer which is set from sockosx.cpp when it is +// linked in and we simply return it from here +extern WXDLLIMPEXP_BASE wxSocketManager *wxOSXSocketManagerCF; +wxSocketManager *wxGUIAppTraits::GetSocketManager() +{ + return wxOSXSocketManagerCF ? wxOSXSocketManagerCF + : wxGUIAppTraitsBase::GetSocketManager(); +} + +#endif // wxUSE_SOCKETS