From: David Webster Date: Wed, 15 Nov 2000 04:59:08 +0000 (+0000) Subject: Some OS/2 updates for VA3.0, specifically, in gsocket X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e15bbde04114171a20d8f74d4c602cb53c84908d Some OS/2 updates for VA3.0, specifically, in gsocket git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/accel.cpp b/src/os2/accel.cpp index 1b901b20c4..611f53c959 100644 --- a/src/os2/accel.cpp +++ b/src/os2/accel.cpp @@ -187,11 +187,22 @@ bool wxAcceleratorTable::Translate( ) const { PQMSG pMsg = (PQMSG)pWxmsg; - - return Ok() && ::WinTranslateAccel( vHabmain - ,(HWND)hWnd - ,GetHaccel() - ,pMsg - ); + BOOL rc = FALSE; + + rc = ::WinTranslateAccel( vHabmain + ,(HWND)hWnd + ,GetHaccel() + ,pMsg + ); + if (rc) + { + int x = 1; + } + return (Ok() && rc); +// ::WinTranslateAccel( vHabmain +// ,(HWND)hWnd +// ,GetHaccel() +// ,pMsg +// ); } // end of wxAcceleratorTable::Translate diff --git a/src/os2/gsocket.c b/src/os2/gsocket.c index 2563bf66fe..1eef6eb14c 100644 --- a/src/os2/gsocket.c +++ b/src/os2/gsocket.c @@ -57,7 +57,12 @@ int _System soclose(int); #include #include -//#include +#if defined(__VISAGECPP__) && __IBMCPP__ < 400 +# ifdef min +# undef min +# endif +# include +#endif #include #include