Build fix for Windows

This commit is contained in:
Gunnar Beutner 2014-08-07 14:23:20 +02:00
parent 5799d86ed7
commit 39248dad42
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -793,7 +793,6 @@ String Utility::FormatErrorNumber(int code) {
}
msgbuf << code << ", \"" << result << "\"";
return tmp.str();
#else
msgbuf << strerror(code);
#endif