X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da51aebeec14342c697d4d74fcb06d3d216ba4f0..1f5cf9cc23f7763e9ee7984b171bb4b6a3ce3ffb:/src/os2/utils.cpp diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index 02f775d5fd..66db9ff3f3 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -15,7 +15,6 @@ #include "wx/utils.h" #ifndef WX_PRECOMP - #include "wx/app.h" #include "wx/intl.h" #include "wx/log.h" #endif //WX_PRECOMP @@ -318,6 +317,13 @@ wxString wxGetOsDescription() return strVer; } +bool wxIsPlatform64Bit() +{ + // FIXME: No idea how to test for 64 bit processor + // (Probably irrelevant anyhow, though). + return false; +} + void wxAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab)) { } @@ -326,27 +332,29 @@ void wxAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab)) { } -wxToolkitInfo & wxConsoleAppTraits::GetToolkitInfo() +wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin) { - static wxToolkitInfo vInfo; ULONG ulSysInfo[QSV_MAX] = {0}; APIRET ulrc; - vInfo.name = _T("wxBase"); ulrc = ::DosQuerySysInfo( 1L ,QSV_MAX ,(PVOID)ulSysInfo ,sizeof(ULONG) * QSV_MAX ); + if (ulrc == 0L) { - vInfo.versionMajor = ulSysInfo[QSV_VERSION_MAJOR] / 10; - vInfo.versionMinor = ulSysInfo[QSV_VERSION_MINOR]; + if ( verMaj ) + *verMaj = ulSysInfo[QSV_VERSION_MAJOR] / 10; + if ( verMin ) + *verMin = ulSysInfo[QSV_VERSION_MINOR]; } - vInfo.os = wxOS2_PM; - return vInfo; + + return wxOS_OS2; } + // --------------------------------------------------------------------------- const wxChar* wxGetHomeDir( wxString* pStr