lemon/bits/windows.cc
changeset 1103 c0c2f5c87aa6
parent 979 43a91b33f374
child 1092 dceba191c00d
equal deleted inserted replaced
5:4b80af21663d 6:cb8b4baed753
   134     WinLock::WinLock() {
   134     WinLock::WinLock() {
   135 #ifdef WIN32
   135 #ifdef WIN32
   136       CRITICAL_SECTION *lock = new CRITICAL_SECTION;
   136       CRITICAL_SECTION *lock = new CRITICAL_SECTION;
   137       InitializeCriticalSection(lock);
   137       InitializeCriticalSection(lock);
   138       _repr = lock;
   138       _repr = lock;
       
   139 #else
       
   140       _repr = 0; //Just to avoid 'unused variable' warning with clang
   139 #endif
   141 #endif
   140     }
   142     }
   141     
   143     
   142     WinLock::~WinLock() {
   144     WinLock::~WinLock() {
   143 #ifdef WIN32
   145 #ifdef WIN32