X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Finternals%2F_PDCLIB_threadconfig.h;h=cca59e1399760d40df4d2f5875950797da8c72d2;hb=d7f375a09a9912bb18ad42f1442fbf64311bfed6;hp=c311867e871297fac957528bc1d664090ba86a80;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4;p=pdclib diff --git a/platform/win32/internals/_PDCLIB_threadconfig.h b/platform/win32/internals/_PDCLIB_threadconfig.h index c311867..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) @@ -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