From 4a268913a84bb934c62bc7685d736678528848d9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 14 Nov 2003 21:04:17 +0000 Subject: [PATCH] Corrected semaphores for WinCE >= 3 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.45.2