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 <thiago.macieira@intel.com>
This commit is contained in:
Krzysztof Sommerfeld 2023-08-10 11:37:14 +02:00
parent 1909e1e14c
commit 44d274a29f

View File

@ -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()
{