From: Lars Op den Kamp Date: Fri, 28 Sep 2012 09:48:10 +0000 (+0200) Subject: fixed windows compilation after b3972c3eb3de18cc9380b1419a923557ce4e96dc X-Git-Tag: upstream/2.2.0~1^2~17^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e00dbf3a30a8514cbe941068aa9593978aa0dfc2;p=deb_libcec.git fixed windows compilation after b3972c3eb3de18cc9380b1419a923557ce4e96dc --- diff --git a/src/lib/platform/windows/os-threads.h b/src/lib/platform/windows/os-threads.h index 091e962..f696ff7 100644 --- a/src/lib/platform/windows/os-threads.h +++ b/src/lib/platform/windows/os-threads.h @@ -43,7 +43,7 @@ namespace PLATFORM typedef CRITICAL_SECTION* mutex_t; #define MutexCreate(mutex) ::InitializeCriticalSection(mutex = new CRITICAL_SECTION) #define MutexDelete(mutex) ::DeleteCriticalSection(mutex); delete mutex - #define MutexLock(mutex) ::EnterCriticalSection(mutex) + inline bool MutexLock(mutex_t mutex) {::EnterCriticalSection(mutex); return true; } #define MutexTryLock(mutex) (::TryEnterCriticalSection(mutex) != 0) #define MutexUnlock(mutex) ::LeaveCriticalSection(mutex)