--- a/src/array_list.c Sun Dec 21 11:09:46 2025 +0100 +++ b/src/array_list.c Sun Dec 21 12:28:13 2025 +0100 @@ -356,8 +356,8 @@ } #ifndef WITH_QSORT_R -static thread_local cx_compare_func2 cx_array_fn_for_qsort; -static thread_local void *cx_array_context_for_qsort; +static _Thread_local cx_compare_func2 cx_array_fn_for_qsort; +static _Thread_local void *cx_array_context_for_qsort; static int cx_array_qsort_wrapper(const void *l, const void *r) { return cx_array_fn_for_qsort(l, r, cx_array_context_for_qsort); }