diff options
-rw-r--r-- | implement.h | 2 | ||||
-rw-r--r-- | pthread_cond_init.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/implement.h b/implement.h index a564105..81c1e61 100644 --- a/implement.h +++ b/implement.h @@ -69,7 +69,7 @@ #define INLINE #endif -#ifdef __MINGW32__ +#if defined (__MINGW32__) || (_MSC_VER >= 1300) #define PTW32_INTERLOCKED_LONG long #define PTW32_INTERLOCKED_LPLONG long* #else diff --git a/pthread_cond_init.c b/pthread_cond_init.c index 446fcc1..b479e88 100644 --- a/pthread_cond_init.c +++ b/pthread_cond_init.c @@ -157,6 +157,7 @@ DONE: LeaveCriticalSection(&ptw32_cond_list_lock); } + *cond = cv; return result; |