thread_local define for clang

This commit is contained in:
Thomas Krijnen
2019-08-09 10:05:49 +02:00
parent 5dbbd917d1
commit 49fb919fbc
+3 -2
View File
@@ -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