add msvc compiling fixes for zstdmt

This commit is contained in:
Tino Reichardt
2017-06-18 14:11:36 +02:00
parent 9ac1921f80
commit 2cea31c544
5 changed files with 10 additions and 4 deletions

View File

@@ -52,10 +52,12 @@ pthread_create(pthread_t * thread, const void *unused,
int _pthread_join(pthread_t * thread, void **value_ptr)
{
DWORD result;
if (!thread->handle)
return 0;
DWORD result = WaitForSingleObject(thread->handle, INFINITE);
result = WaitForSingleObject(thread->handle, INFINITE);
switch (result) {
case WAIT_OBJECT_0:
if (value_ptr)