From: Stefan Neis Date: Sun, 27 Aug 2006 16:40:17 +0000 (+0000) Subject: Fixed OS/2 specific defines (there's no such thing as WXOS2). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8ab09e65f950ca30fbbcb29e0ddd0ff1af073b36 Fixed OS/2 specific defines (there's no such thing as WXOS2). Added the more commonly used wxPORT_PM as alias for wxPORT_OS2. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/platinfo.h b/include/wx/platinfo.h index 54a3af870c..f094a4ce30 100644 --- a/include/wx/platinfo.h +++ b/include/wx/platinfo.h @@ -74,7 +74,8 @@ enum wxPortId wxPORT_GTK = 1 << 3, // wxGTK, using GTK+ 1.x, 2.x, GPE or Maemo wxPORT_MGL = 1 << 4, // wxMGL, using wxUniversal wxPORT_X11 = 1 << 5, // wxX11, using wxUniversal - wxPORT_OS2 = 1 << 6, // wxOS2, using OS/2 Presentation Manager + wxPORT_PM = 1 << 6, // wxOS2, using OS/2 Presentation Manager + wxPORT_OS2 = wxPORT_PM, // wxOS2, using OS/2 Presentation Manager wxPORT_MAC = 1 << 7, // wxMac, using Carbon or Classic Mac API wxPORT_COCOA = 1 << 8, // wxCocoa, using Cocoa NextStep/Mac API wxPORT_WINCE = 1 << 9, // wxWinCE, toolkit is WinCE SDK API diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 73905fd61e..2f359b7cc7 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -483,8 +483,12 @@ bool wxPlatform::Is(int platform) if (platform == wxPORT_MGL) return true; #endif -#ifdef __WXOS2__ - if (platform == wxPORT_OS2) +#ifdef __OS2__ + if (platform == wxOS_OS2) + return true; +#endif +#ifdef __WXPM__ + if (platform == wxPORT_PM) return true; #endif #ifdef __WXCOCOA__