Skip to content

Use common approach to define thread_local - #22

Merged
zyedidia merged 1 commit into
lfi-project:masterfrom
sroettger:master
Sep 8, 2026
Merged

zyedidia merged 1 commit into
lfi-project:masterfrom
sroettger:master

Conversation

@sroettger

Copy link
Copy Markdown
Contributor

Replace the threads.h includes with

#ifndef thread_local
#define thread_local _Thread_local
#endif

everywhere.

threads.h is not available on all platforms and this code snippet is already in use in linux/trampoline.h.

@zyedidia
zyedidia merged commit 80899ce into lfi-project:master Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants