X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2F_PDCLIB_threadconfig.h;h=516cc360e4eef39725ce3261c72645de6ee3bd80;hb=d7f375a09a9912bb18ad42f1442fbf64311bfed6;hp=ceeaac4af2e4db3db8f00f05abd5ae31ef70373a;hpb=71138f702f36adace73415a67d0e2e5707a48ba2;p=pdclib diff --git a/opt/nothread/_PDCLIB_threadconfig.h b/opt/nothread/_PDCLIB_threadconfig.h index ceeaac4..516cc36 100644 --- a/opt/nothread/_PDCLIB_threadconfig.h +++ b/opt/nothread/_PDCLIB_threadconfig.h @@ -3,9 +3,11 @@ #include <_PDCLIB_aux.h> #include <_PDCLIB_config.h> -_PDCLIB_BEGIN_EXTERN_C +#ifdef __cplusplus +extern "C" { +#endif #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)); @@ -20,5 +22,7 @@ struct _PDCLIB_tss { void *value; }; -_PDCLIB_END_EXTERN_C +#ifdef __cplusplus +} +#endif #endif