Skip to content

Commit d385352

Browse files
committed
fix windows thread attribute
1 parent 0b3f158 commit d385352

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

parse.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3756,14 +3756,14 @@ static void parse_typedef_declaration(Token *tok, int scope_depth) {
37563756
// iterative (not recursive) so a single thread-local working set is reused
37573757
// across calls; the buffers leak at thread shutdown which is acceptable
37583758
// for transpiler tooling.
3759-
static __thread int *sos_do_if_save = NULL;
3760-
static __thread int *sos_do_tn_save = NULL;
3761-
static __thread int *sos_do_snap_start = NULL;
3762-
static __thread int sos_do_cap = 0;
3763-
static __thread int *sos_do_snap_buf = NULL;
3764-
static __thread int sos_snap_cap = 0;
3765-
static __thread int *sos_if_trail_snap = NULL;
3766-
static __thread int sos_if_cap = 0;
3759+
static PRISM_THREAD_LOCAL int *sos_do_if_save = NULL;
3760+
static PRISM_THREAD_LOCAL int *sos_do_tn_save = NULL;
3761+
static PRISM_THREAD_LOCAL int *sos_do_snap_start = NULL;
3762+
static PRISM_THREAD_LOCAL int sos_do_cap = 0;
3763+
static PRISM_THREAD_LOCAL int *sos_do_snap_buf = NULL;
3764+
static PRISM_THREAD_LOCAL int sos_snap_cap = 0;
3765+
static PRISM_THREAD_LOCAL int *sos_if_trail_snap = NULL;
3766+
static PRISM_THREAD_LOCAL int sos_if_cap = 0;
37673767

37683768
static inline int sos_grow_to(int cur_cap, int need) {
37693769
int nc = cur_cap ? cur_cap : 128;

0 commit comments

Comments
 (0)