mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Fixed Windows build issue in threadtools.h.
This commit is contained in:
@ -890,8 +890,13 @@ template <> struct CAutoLockTypeDeducer<sizeof(CAlignedThreadFastMutex)> { typed
|
||||
#define AUTO_LOCK_( type, mutex ) \
|
||||
CAutoLockT< type > UNIQUE_ID( static_cast<const type &>( mutex ) )
|
||||
|
||||
#ifdef COMPILER_GCC
|
||||
#define AUTO_LOCK( mutex ) \
|
||||
AUTO_LOCK_( typeof(CAutoLockTypeDeducer<sizeof(mutex)>::Type_t), mutex )
|
||||
#else
|
||||
#define AUTO_LOCK( mutex ) \
|
||||
AUTO_LOCK_( CAutoLockTypeDeducer<sizeof(mutex)>::Type_t, mutex )
|
||||
#endif
|
||||
|
||||
|
||||
#define AUTO_LOCK_FM( mutex ) \
|
||||
|
Reference in New Issue
Block a user