]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/_PDCLIB_threadconfig.h
_PDCLIB_ONCE_FLAG_DONE -> _PDCLIB_ONCE_FLAG_IS_DONE(flag) to support once_flag types...
[pdclib.old] / opt / nothread / _PDCLIB_threadconfig.h
index 39478e97d4c35d28bf57c3c6e0cbf5528fef4dd1..ceeaac4af2e4db3db8f00f05abd5ae31ef70373a 100644 (file)
@@ -5,7 +5,7 @@
 \r
 _PDCLIB_BEGIN_EXTERN_C\r
 #define _PDCLIB_ONCE_FLAG_INIT 0\r
-#define _PDCLIB_ONCE_FLAG_DONE 1\r
+#define _PDCLIB_ONCE_FLAG_IS_DONE(_f) ((_f) == 1)\r
 typedef char _PDCLIB_once_flag;\r
 \r
 void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));\r