replaced wxAppTraits::GetOSVersion with GetToolkitInfo with richer information that is needed by wxDynamicLibrary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1012,7 +1012,7 @@ wxString wxGetOsDescription()
|
||||
#endif // Win32/16
|
||||
}
|
||||
|
||||
int wxAppTraits::GetOSVersion(int *verMaj, int *verMin)
|
||||
wxToolkitInfo *wxAppTraits::GetToolkitInfo()
|
||||
{
|
||||
// cache the version info, it's not going to change
|
||||
//
|
||||
@@ -1056,12 +1056,12 @@ int wxAppTraits::GetOSVersion(int *verMaj, int *verMin)
|
||||
}
|
||||
}
|
||||
|
||||
if ( verMaj )
|
||||
*verMaj = s_major;
|
||||
if ( verMin )
|
||||
*verMin = s_minor;
|
||||
|
||||
return s_ver;
|
||||
static wxToolkitInfo info;
|
||||
info.versionMajor = s_major;
|
||||
info.versionMinor = s_minor;
|
||||
info.os = s_ver;
|
||||
info.name = _T("wxBase");
|
||||
return &info;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user