X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2F_PDCLIB_threadconfig.h;h=3380b5226c989f4b36e8ea0467605a16904a0bc1;hb=7ef2d8e3f973420b1b717525d643e47337557938;hp=ceeaac4af2e4db3db8f00f05abd5ae31ef70373a;hpb=a9f7a6b87674b6f413d4a9d0a258dd5f5c2df2b4;p=pdclib.old diff --git a/opt/nothread/_PDCLIB_threadconfig.h b/opt/nothread/_PDCLIB_threadconfig.h index ceeaac4..3380b52 100644 --- a/opt/nothread/_PDCLIB_threadconfig.h +++ b/opt/nothread/_PDCLIB_threadconfig.h @@ -5,7 +5,7 @@ _PDCLIB_BEGIN_EXTERN_C #define _PDCLIB_ONCE_FLAG_INIT 0 -#define _PDCLIB_ONCE_FLAG_IS_DONE(_f) ((_f) == 1) +#define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1) typedef char _PDCLIB_once_flag; void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));