Skip to content

Commit 061c72a

Browse files
committed
Merge branch 'gf/win32-pthread-cond-init' into seen
Emulation code clean-up. * gf/win32-pthread-cond-init: win32: pthread_cond_init should return a value
2 parents 406c8e7 + 42aa760 commit 061c72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/win32/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t;
3434

3535
#define pthread_cond_t CONDITION_VARIABLE
3636

37-
#define pthread_cond_init(a,b) InitializeConditionVariable((a))
37+
#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0))
3838
#define pthread_cond_destroy(a) do {} while (0)
3939
#define pthread_cond_signal WakeConditionVariable
4040
#define pthread_cond_broadcast WakeAllConditionVariable

0 commit comments

Comments
 (0)