From b2f7fc8b0dc7925e4144128476cd486c9419db51 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 18 Nov 2025 22:36:09 +0100 Subject: [PATCH] remove thread.h include, use "thread_local" for everything we enforce c++ 17, thread_local is a c++11 extension, so this should work everywhere --- src/r_draw_span.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/r_draw_span.cpp b/src/r_draw_span.cpp index e5ee15463..ca41b17c8 100644 --- a/src/r_draw_span.cpp +++ b/src/r_draw_span.cpp @@ -14,13 +14,7 @@ /// \note no includes because this is included as part of r_draw.cpp #ifdef HAVE_THREADS -#ifdef _WIN32 -#include -#define local_for_thread static __thread -#else -#include -#define local_for_thread thread_local static -#endif +#define local_for_thread static thread_local #else #define local_for_thread static #endif