Merge pull request #611 from sergiud/incorrect-cygwin64-define
replaced __CYGWIN32__ and __CYGWIN64__ by __CYGWIN__
This commit is contained in:
commit
4cef723320
@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
#if defined(NO_THREADS)
|
#if defined(NO_THREADS)
|
||||||
typedef int MutexType; // to keep a lock-count
|
typedef int MutexType; // to keep a lock-count
|
||||||
#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__)
|
#elif defined(_WIN32) || defined(__CYGWIN__)
|
||||||
# ifndef WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
# define WIN32_LEAN_AND_MEAN // We only need minimal includes
|
# define WIN32_LEAN_AND_MEAN // We only need minimal includes
|
||||||
# endif
|
# endif
|
||||||
@ -223,7 +223,7 @@ bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
|
|||||||
void Mutex::ReaderLock() { assert(++mutex_ > 0); }
|
void Mutex::ReaderLock() { assert(++mutex_ > 0); }
|
||||||
void Mutex::ReaderUnlock() { assert(mutex_-- > 0); }
|
void Mutex::ReaderUnlock() { assert(mutex_-- > 0); }
|
||||||
|
|
||||||
#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__)
|
#elif defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
|
||||||
Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); }
|
Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); }
|
||||||
Mutex::~Mutex() { DeleteCriticalSection(&mutex_); }
|
Mutex::~Mutex() { DeleteCriticalSection(&mutex_); }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user