From 7e896bec3a2be93688225e9b752b0498ce2c97c1 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 28 Feb 2013 12:46:32 -0500 Subject: [PATCH] Fixed Windows build issue in threadtools.h. --- public/tier0/threadtools.h | 5 +++++ 1 file changed, 5 insertions(+) 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 ) \