Declarations missing from VC++ 5
[wxWidgets.git] / src / os2 / utils.cpp
index 02f775d5fdeabc0fd20896ad77a15465ad2b44c8..cf0cbc1bedfcf4b4f9f9e8c82460960da0b20099 100644 (file)
@@ -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
@@ -326,27 +325,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