]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected semaphores for WinCE >= 3
authorJulian Smart <julian@anthemion.co.uk>
Fri, 14 Nov 2003 21:04:17 +0000 (21:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 14 Nov 2003 21:04:17 +0000 (21:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/thread.cpp

index 4c9b11e4405a12ca330cbc952ac86e2bc68dfe67..cc035de03d4cf82d9923cad7fb69d0b0cfd74410 100644 (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
     {