X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Finternals%2F_PDCLIB_threadconfig.h;h=5969a7b6c9bd69d4908e2a785ae4ca8967ecd4ac;hb=ed26bf80a4713c6b1f158571f3090f4cbb2d64f7;hp=c311867e871297fac957528bc1d664090ba86a80;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4;p=pdclib diff --git a/platform/win32/internals/_PDCLIB_threadconfig.h b/platform/win32/internals/_PDCLIB_threadconfig.h index c311867..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) @@ -20,7 +22,7 @@ void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void)); struct _PDCLIB_mtx { void * _WaitEvHandle; - volatile unsigned long _ThreadId; + volatile long _ThreadId; volatile unsigned int _NestCount; }; @@ -32,5 +34,7 @@ struct _PDCLIB_tss { unsigned int _Key; }; -_PDCLIB_END_EXTERN_C +#ifdef __cplusplus +} +#endif #endif