X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2F_PDCLIB_threadconfig.h;h=3380b5226c989f4b36e8ea0467605a16904a0bc1;hb=b641165a0d122178a33070e3434ab7b49397ad94;hp=ceeaac4af2e4db3db8f00f05abd5ae31ef70373a;hpb=d265e525e9f73e8f40fed2686d778339de55f20e;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));