From: Julian Smart Date: Fri, 14 Nov 2003 21:04:17 +0000 (+0000) Subject: Corrected semaphores for WinCE >= 3 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4a268913a84bb934c62bc7685d736678528848d9 Corrected semaphores for WinCE >= 3 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 4c9b11e440..cc035de03d 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -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 {