X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29c99ad3597ad722ed540b1e600f3ae3afe0f872..cb928fe350ca0c093642133cf0de24d1b064aa72:/src/unix/baseunix.cpp?ds=sidebyside diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index b265339a06..bd40653d6f 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -88,8 +88,9 @@ wxConsoleAppTraits::WaitForChild(wxExecuteData& execData) // this is in mac/utils.cpp under Mac #ifndef __WXMAC__ -int wxConsoleAppTraits::GetOSVersion(int *verMaj, int *verMin) +wxToolkitInfo& wxConsoleAppTraits::GetToolkitInfo() { + static wxToolkitInfo info; int major, minor; char name[256]; @@ -100,12 +101,12 @@ int wxConsoleAppTraits::GetOSVersion(int *verMaj, int *verMin) minor = -1; } - if ( verMaj ) - *verMaj = major; - if ( verMin ) - *verMin = minor; + info.versionMajor = major; + info.versionMinor = minor; + info.name = _T("wxBase"); + info.os = wxUNIX; - return wxUNIX; + return info; } #endif // __WXMAC__