From 44d274a29f746b865ef056bb997b66357769bd62 Mon Sep 17 00:00:00 2001 From: Krzysztof Sommerfeld Date: Thu, 10 Aug 2023 11:37:14 +0200 Subject: [PATCH] Add 'thread_local' definition as it is not available in C mode for VxWorks Task-number: QTBUG-115777 Change-Id: I42c54ac2a34817f3b0a9b687ee282b97123b78c9 Reviewed-by: Thiago Macieira --- tests/auto/corelib/global/qglobal/qglobal.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/corelib/global/qglobal/qglobal.c b/tests/auto/corelib/global/qglobal/qglobal.c index 8f9d8b5239..46745ef368 100644 --- a/tests/auto/corelib/global/qglobal/qglobal.c +++ b/tests/auto/corelib/global/qglobal/qglobal.c @@ -14,6 +14,11 @@ * everything works. */ +#if defined(Q_OS_VXWORKS) && !defined(thread_local) +// threads.h forgot to define this (should be fixed for version 23.11) +# define thread_local _Thread_local +#endif + /* Types and Q_UNUSED */ void tst_GlobalTypes() {