projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make this available everywhere
[wxWidgets.git]
/
src
/
os2
/
utils.cpp
diff --git
a/src/os2/utils.cpp
b/src/os2/utils.cpp
index 02f775d5fdeabc0fd20896ad77a15465ad2b44c8..33d262725b7d3c74273123a1480d3ffd73482c93 100644
(file)
--- a/
src/os2/utils.cpp
+++ b/
src/os2/utils.cpp
@@
-15,7
+15,6
@@
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#ifndef WX_PRECOMP
- #include "wx/app.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif //WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#endif //WX_PRECOMP
@@
-298,19
+297,18
@@
void wxBell()
wxString wxGetOsDescription()
{
wxString strVer(_T("OS/2"));
wxString wxGetOsDescription()
{
wxString strVer(_T("OS/2"));
- ULONG ulSysInfo
[QSV_MAX] = {0}
;
+ ULONG ulSysInfo
= 0
;
- if (::DosQuerySysInfo(
1L
,
- QSV_
MAX
,
- (PVOID)ulSysInfo,
- sizeof(ULONG)
* QSV_MAX
+ if (::DosQuerySysInfo(
QSV_VERSION_MINOR
,
+ QSV_
VERSION_MINOR
,
+ (PVOID)
&
ulSysInfo,
+ sizeof(ULONG)
) == 0L )
{
wxString ver;
) == 0L )
{
wxString ver;
- ver.Printf( _T(" ver. %d.%d rev. %c"),
- int(ulSysInfo[QSV_VERSION_MAJOR] / 10),
- int(ulSysInfo[QSV_VERSION_MINOR]),
- char(ulSysInfo[QSV_VERSION_REVISION])
+ ver.Printf( _T(" ver. %d.%d"),
+ int(ulSysInfo / 10),
+ int(ulSysInfo % 10)
);
strVer += ver;
}
);
strVer += ver;
}
@@
-318,6
+316,13
@@
wxString wxGetOsDescription()
return strVer;
}
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))
{
}
void wxAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab))
{
}
@@
-326,27
+331,29
@@
void wxAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab))
{
}
{
}
-wx
ToolkitInfo & wxConsoleAppTraits::GetToolkitInfo(
)
+wx
OperatingSystemId wxGetOsVersion(int *verMaj, int *verMin
)
{
{
- static wxToolkitInfo vInfo;
- ULONG ulSysInfo[QSV_MAX] = {0};
+ ULONG ulSysInfo = 0;
APIRET ulrc;
APIRET ulrc;
- vInfo.name = _T("wxBase");
- ulrc = ::DosQuerySysInfo( 1L
- ,QSV_MAX
- ,(PVOID)ulSysInfo
- ,sizeof(ULONG) * QSV_MAX
+ ulrc = ::DosQuerySysInfo( QSV_VERSION_MINOR,
+ QSV_VERSION_MINOR,
+ (PVOID)&ulSysInfo,
+ sizeof(ULONG)
);
);
+
if (ulrc == 0L)
{
if (ulrc == 0L)
{
- vInfo.versionMajor = ulSysInfo[QSV_VERSION_MAJOR] / 10;
- vInfo.versionMinor = ulSysInfo[QSV_VERSION_MINOR];
+ if ( verMaj )
+ *verMaj = ulSysInfo / 10;
+ if ( verMin )
+ *verMin = ulSysInfo % 10;
}
}
- vInfo.os = wxOS2_PM;
- return
vInfo
;
+
+ return
wxOS_OS2
;
}
}
+
// ---------------------------------------------------------------------------
const wxChar* wxGetHomeDir(
wxString* pStr
// ---------------------------------------------------------------------------
const wxChar* wxGetHomeDir(
wxString* pStr