mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821358 - Port the trace-malloc Windows TLS macros to DMD; r=njn
This commit is contained in:
parent
f0cab2c607
commit
0a84fb2ffa
@ -404,7 +404,13 @@ public:
|
|||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
|
|
||||||
#error "Windows not supported yet, sorry."
|
#define DMD_TLS_INDEX_TYPE DWORD
|
||||||
|
#define DMD_CREATE_TLS_INDEX(i_) PR_BEGIN_MACRO \
|
||||||
|
(i_) = TlsAlloc(); \
|
||||||
|
PR_END_MACRO
|
||||||
|
#define DMD_DESTROY_TLS_INDEX(i_) TlsFree((i_))
|
||||||
|
#define DMD_GET_TLS_DATA(i_) TlsGetValue((i_))
|
||||||
|
#define DMD_SET_TLS_DATA(i_, v_) TlsSetValue((i_), (v_))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user