syntax updates
This commit is contained in:
parent
cfdaa1185f
commit
4799f0d9be
@ -31,12 +31,11 @@ static BOOL CALLBACK _pthread_once_win32_cb(PINIT_ONCE once, PVOID param, PVOID
|
||||
static int pthread_once(pthread_once_t *once, void (*cb) (void))
|
||||
{
|
||||
BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, cb, NULL);
|
||||
if (rc == 0) {
|
||||
if (rc == 0)
|
||||
return -1;
|
||||
} else {
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
#include_next <pthread.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user