Build fix for OS X.

This commit is contained in:
Gunnar Beutner 2014-08-01 17:05:09 +02:00
parent f332c89f3b
commit 0de728db64
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ static void OpenSSLLockingCallback(int mode, int type, const char *, int)
static unsigned long OpenSSLIDCallback(void)
{
#ifdef _WIN32
return static_cast<unsigned long>(GetCurrentThreadId());
return reinterpret_cast<unsigned long>(GetCurrentThreadId());
#else /* _WIN32 */
return static_cast<unsigned long>(pthread_self());
return reinterpret_cast<unsigned long>(pthread_self());
#endif /* _WIN32 */
}