aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2018-03-14 12:58:48 -0500
committerBrent Cook <busterb@gmail.com>2018-03-14 12:58:48 -0500
commit4799f0d9be5658d18fe33ffbbde42ed4fc608ef3 (patch)
tree7b84981bbecf02f8191fa4a42f98593d95759d0f
parentcfdaa1185f17a10aeb8bc044fedd1dbc66dca229 (diff)
downloadportable-4799f0d9be5658d18fe33ffbbde42ed4fc608ef3.tar.gz
portable-4799f0d9be5658d18fe33ffbbde42ed4fc608ef3.tar.bz2
portable-4799f0d9be5658d18fe33ffbbde42ed4fc608ef3.zip
syntax updates
-rw-r--r--include/compat/pthread.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/compat/pthread.h b/include/compat/pthread.h
index 8edb806..19eea13 100644
--- a/include/compat/pthread.h
+++ b/include/compat/pthread.h
@@ -25,17 +25,16 @@ static BOOL CALLBACK _pthread_once_win32_cb(PINIT_ONCE once, PVOID param, PVOID
25{ 25{
26 void (*cb) (void) = param; 26 void (*cb) (void) = param;
27 cb(); 27 cb();
28 return TRUE; 28 return TRUE;
29} 29}
30 30
31static int pthread_once(pthread_once_t *once, void (*cb) (void)) 31static int pthread_once(pthread_once_t *once, void (*cb) (void))
32{ 32{
33 BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, cb, NULL); 33 BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, cb, NULL);
34 if (rc == 0) { 34 if (rc == 0)
35 return -1; 35 return -1;
36 } else { 36 else
37 return 0; 37 return 0;
38 }
39} 38}
40 39
41#else 40#else