]> pd.if.org Git - pdclib/blobdiff - opt/nothread/call_once.c
PDCLib includes with quotes, not <>.
[pdclib] / opt / nothread / call_once.c
index 83201708b401fecc38e8a3bb0ffad8df89a99014..3bdca049a2f6d3e1dd2734a458d89946a3338299 100644 (file)
@@ -3,15 +3,15 @@
 \r
 void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void))\r
 {\r
-       if(*flag != _PDCLIB_ONCE_FLAG_DONE) {\r
+       if(!_PDCLIB_ONCE_FLAG_IS_DONE(flag)) {\r
                func();\r
-               *flag = _PDCLIB_ONCE_FLAG_DONE;\r
+               *flag = 1;\r
        }\r
 }\r
 #endif\r
 \r
 #ifdef TEST\r
-#include <_PDCLIB_test.h>\r
+#include "_PDCLIB_test.h"\r
 \r
 #ifndef REGTEST\r
 static int count = 0;\r