Corrected semaphores for WinCE >= 3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-11-14 21:04:17 +00:00
parent aa2d9ecc3f
commit 4a268913a8

View File

@@ -300,7 +300,7 @@ private:
wxSemaphoreInternal::wxSemaphoreInternal(int initialcount, int maxcount)
{
#ifndef __WXWINCE__
#if !defined(_WIN32_WCE) || (_WIN32_WCE >= 300)
if ( maxcount == 0 )
{
// make it practically infinite
@@ -353,7 +353,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
wxSemaError wxSemaphoreInternal::Post()
{
#ifndef __WXWINCE__
#if !defined(_WIN32_WCE) || (_WIN32_WCE >= 300)
if ( !::ReleaseSemaphore(m_semaphore, 1, NULL /* ptr to previous count */) )
#endif
{