mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
thread_local define for clang
This commit is contained in:
@@ -49,8 +49,9 @@
|
|||||||
|
|
||||||
#include "../ifcparse/IfcSpfStream.h"
|
#include "../ifcparse/IfcSpfStream.h"
|
||||||
|
|
||||||
/* gcc doesn't know _Thread_local from C11 yet */
|
#if defined(__clang__)
|
||||||
#ifdef __GNUC__
|
# define my_thread_local thread_local
|
||||||
|
#elif defined(__GNUC__)
|
||||||
# define my_thread_local __thread
|
# define my_thread_local __thread
|
||||||
#elif __STDC_VERSION__ >= 201112L
|
#elif __STDC_VERSION__ >= 201112L
|
||||||
# define my_thread_local _Thread_local
|
# define my_thread_local _Thread_local
|
||||||
|
|||||||
Reference in New Issue
Block a user