[nce] fix tls using c23 kw

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-03 20:48:00 +00:00 committed by crueter
parent aa82a1cc99
commit 3eba1533e7
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6

View file

@ -247,7 +247,7 @@ ArmNce::~ArmNce() = default;
// Borrowed from libusb // Borrowed from libusb
static unsigned int posix_gettid(void) { static unsigned int posix_gettid(void) {
static _Thread_local unsigned int tl_tid; static thread_local unsigned int tl_tid;
int tid; int tid;
if (tl_tid) if (tl_tid)
return tl_tid; return tl_tid;