1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Added OS X static libs for the future.

This commit is contained in:
Scott Ehlert
2012-05-21 18:30:56 -05:00
parent f2185a5cfb
commit 75fdf22c20
13 changed files with 42 additions and 22 deletions

View File

@ -336,9 +336,10 @@ public:
void Set(void *);
private:
uint32 m_index;
#if defined(POSIX)
pthread_key_t m_index;
#else
uint32 m_index;
#endif
};
@ -890,7 +891,7 @@ template <> struct CAutoLockTypeDeducer<sizeof(CAlignedThreadFastMutex)> { typed
CAutoLockT< type > UNIQUE_ID( static_cast<const type &>( mutex ) )
#define AUTO_LOCK( mutex ) \
AUTO_LOCK_( CAutoLockTypeDeducer<sizeof(mutex)>::Type_t, mutex )
AUTO_LOCK_( typeof(CAutoLockTypeDeducer<sizeof(mutex)>::Type_t), mutex )
#define AUTO_LOCK_FM( mutex ) \