From b460321e3cc3f62f1b9cd1a8150b371130c031dc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 2 May 2014 12:13:49 +0200 Subject: [PATCH] Fixed w32 compiling. --- lib/shared_memory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 8893135e..4dc739a4 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -102,10 +102,11 @@ namespace IPC { ///\brief Returns the current value of the semaphore int semaphore::getVal() const { - int res; #ifdef __CYGWIN__ + LONG res; ReleaseSemaphore(mySem, 0, &res);//not really release.... just checking to see if I can get the value this way #else + int res; sem_getvalue(mySem, &res); #endif return res;