From 914eeae2847d2f05b2216cdce3b2091b7cc0269e Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 13 Mar 2014 21:45:14 -0400 Subject: [PATCH] PThreads are weird on OS X --- Core/src/ThreadPThread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/src/ThreadPThread.cpp b/Core/src/ThreadPThread.cpp index e55da1c..de7b871 100644 --- a/Core/src/ThreadPThread.cpp +++ b/Core/src/ThreadPThread.cpp @@ -140,6 +140,8 @@ void TCThread::Yield() { uint64 TCThread::ThreadID() { #ifdef __MINGW32__ return static_cast(pthread_self().x); +#elif defined __APPLE__ + return reinterpret_cast(pthread_self()); #else return static_cast(pthread_self()); #endif