Fixed w32 compiling.

This commit is contained in:
Thulinma 2014-05-02 12:13:49 +02:00
parent 59c1023447
commit b460321e3c

View file

@ -102,10 +102,11 @@ namespace IPC {
///\brief Returns the current value of the semaphore ///\brief Returns the current value of the semaphore
int semaphore::getVal() const { int semaphore::getVal() const {
int res;
#ifdef __CYGWIN__ #ifdef __CYGWIN__
LONG res;
ReleaseSemaphore(mySem, 0, &res);//not really release.... just checking to see if I can get the value this way ReleaseSemaphore(mySem, 0, &res);//not really release.... just checking to see if I can get the value this way
#else #else
int res;
sem_getvalue(mySem, &res); sem_getvalue(mySem, &res);
#endif #endif
return res; return res;