]> pd.if.org Git - pdclib.old/blobdiff - includes/threads.h
<time.h>: define timespec_get, TIME_UTC, to support <threads.h> implementations
[pdclib.old] / includes / threads.h
index c9e3b07f24b656a1730f22f7349f3feb656791eb..0af707e6ee933990b038a4fde441ffca200f07ba 100644 (file)
@@ -25,10 +25,10 @@ enum {
 };\r
 \r
 #define ONCE_FLAG_INIT _PDCLIB_ONCE_FLAG_INIT\r
-#if defined(_PDCLIB_ONCE_FLAG_DONE)\r
+#if defined(_PDCLIB_ONCE_FLAG_IS_DONE)\r
 static inline void call_once(once_flag *flag, void (*func)(void))\r
 {\r
-       if(*flag != _PDCLIB_ONCE_FLAG_DONE) {\r
+       if(!_PDCLIB_ONCE_FLAG_IS_DONE(flag)) {\r
                _PDCLIB_call_once(flag, func);\r
        }\r
 }\r