]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed OS/2 specific defines (there's no such thing as WXOS2).
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 27 Aug 2006 16:40:17 +0000 (16:40 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 27 Aug 2006 16:40:17 +0000 (16:40 +0000)
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

include/wx/platinfo.h
src/common/utilscmn.cpp

index 54a3af870c7773fa412243331994baf43f549734..f094a4ce30657632ce11f48f12be7dd0e62dfd1c 100644 (file)
@@ -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
index 73905fd61ee5dfd8133145741dc5137057cd60ee..2f359b7cc7c5e07f1c7da5e4090b7879c0b3b735 100644 (file)
@@ -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__