X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Finternals%2F_PDCLIB_threadconfig.h;h=cca59e1399760d40df4d2f5875950797da8c72d2;hb=81b6302395f77a0d4e0771cb9e1cef80188d9474;hp=d914ae04d646564db18632f49c62f6b201610a63;hpb=639bad513ab9399ed9a8c588a476a10dbe6c9478;p=pdclib diff --git a/platform/win32/internals/_PDCLIB_threadconfig.h b/platform/win32/internals/_PDCLIB_threadconfig.h index d914ae0..cca59e1 100644 --- a/platform/win32/internals/_PDCLIB_threadconfig.h +++ b/platform/win32/internals/_PDCLIB_threadconfig.h @@ -3,7 +3,9 @@ #include <_PDCLIB_aux.h> #include <_PDCLIB_int.h> -_PDCLIB_BEGIN_EXTERN_C +#ifdef __cplusplus +extern "C" { +#endif #define _PDCLIB_TSS_DTOR_ITERATIONS 3 #define _PDCLIB_ONCE_FLAG_INIT { -1, 0 } #define _PDCLIB_ONCE_FLAG_IS_DONE( _f ) ((_f)->_State == 0) @@ -19,10 +21,9 @@ void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void)); #define _PDCLIB_MTX_T struct _PDCLIB_mtx struct _PDCLIB_mtx { - void * _WaitEvHandle; - volatile signed long _State; - volatile unsigned int _ThreadId; - volatile unsigned int _NestCount; + void * _WaitEvHandle; + volatile long _ThreadId; + volatile unsigned int _NestCount; }; #define _PDCLIB_TSS_T struct _PDCLIB_tss * @@ -33,5 +34,7 @@ struct _PDCLIB_tss { unsigned int _Key; }; -_PDCLIB_END_EXTERN_C +#ifdef __cplusplus +} +#endif #endif