diff --git a/public/tier0/threadtools.h b/public/tier0/threadtools.h index abb36908..876f3a0e 100644 --- a/public/tier0/threadtools.h +++ b/public/tier0/threadtools.h @@ -890,8 +890,13 @@ template <> struct CAutoLockTypeDeducer { typed #define AUTO_LOCK_( type, mutex ) \ CAutoLockT< type > UNIQUE_ID( static_cast( mutex ) ) +#ifdef COMPILER_GCC #define AUTO_LOCK( mutex ) \ AUTO_LOCK_( typeof(CAutoLockTypeDeducer::Type_t), mutex ) +#else +#define AUTO_LOCK( mutex ) \ + AUTO_LOCK_( CAutoLockTypeDeducer::Type_t, mutex ) +#endif #define AUTO_LOCK_FM( mutex ) \