From: Vadim Zeitlin Date: Sun, 2 Mar 2008 01:02:07 +0000 (+0000) Subject: add platform info for Palm (add-wxpalm-info.diff part of patch 1894861) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/027fe16c35047e5b6b6a5133cb42a1ba4ec6ff4e add platform info for Palm (add-wxpalm-info.diff part of patch 1894861) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/platinfo.h b/include/wx/platinfo.h index 809a314673..ad01a08b62 100644 --- a/include/wx/platinfo.h +++ b/include/wx/platinfo.h @@ -58,7 +58,11 @@ enum wxOperatingSystemId // 1<<13 and 1<<14 available for other Unix flavours wxOS_DOS = 1 << 15, // Microsoft DOS - wxOS_OS2 = 1 << 16 // OS/2 + wxOS_OS2 = 1 << 16, // OS/2 + + wxOS_PALM_OS = 1 << 17, // Pure Palm OS + wxOS_PALM_LINUX = 1 << 18, // Palm over linux + wxOS_PALM = wxOS_PALM_OS | wxOS_PALM_LINUX, }; // list of wxWidgets ports - some of them can be used with more than diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index e99d970a1e..1e06e50c3b 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -317,6 +317,10 @@ bool WidgetsApp::OnInit() title += _T("wxMAC"); #elif defined(__WXMOTIF__) title += _T("wxMOTIF"); +#elif __WXPALMOS5__ + title += _T("wxPALMOS5"); +#elif __WXPALMOS6__ + title += _T("wxPALMOS6"); #else title += _T("wxWidgets"); #endif diff --git a/src/common/platinfo.cpp b/src/common/platinfo.cpp index 163a4c1f63..fbb27bfd94 100644 --- a/src/common/platinfo.cpp +++ b/src/common/platinfo.cpp @@ -66,7 +66,10 @@ static const wxChar* const wxOperatingSystemIdNames[] = _T("Other Unix"), _T("DOS"), - _T("OS/2") + _T("OS/2"), + + _T("PalmOS"), + _T("PalmOS(Over Linux)"), }; static const wxChar* const wxPortIdNames[] =