X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29c99ad3597ad722ed540b1e600f3ae3afe0f872..90ff87d7b01e32cbfa856b41e11b646316c2e88a:/src/unix/baseunix.cpp diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index b265339a06..0b03067e58 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -6,7 +6,7 @@ // Created: 23.06.2003 // RCS-ID: $Id$ // Copyright: (c) 2003 Vadim Zeitlin -// License: wxWindows license +// License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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__