X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fwin32%2Finternals%2F_PDCLIB_threadconfig.h;h=5969a7b6c9bd69d4908e2a785ae4ca8967ecd4ac;hp=d914ae04d646564db18632f49c62f6b201610a63;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=639bad513ab9399ed9a8c588a476a10dbe6c9478 diff --git a/platform/win32/internals/_PDCLIB_threadconfig.h b/platform/win32/internals/_PDCLIB_threadconfig.h index d914ae0..5969a7b 100644 --- a/platform/win32/internals/_PDCLIB_threadconfig.h +++ b/platform/win32/internals/_PDCLIB_threadconfig.h @@ -1,9 +1,11 @@ #ifndef _PDCLIB_THREADCONFIG_H #define _PDCLIB_THREADCONFIG_H -#include <_PDCLIB_aux.h> -#include <_PDCLIB_int.h> +#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