From 55aa3d0702b1116f997842647497c81ec4c1d57b Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Thu, 16 Jun 2016 17:32:11 -0700 Subject: [PATCH] Fix thread_local.hpp to compile with GCC --- src/object-store/src/util/thread_local.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object-store/src/util/thread_local.hpp b/src/object-store/src/util/thread_local.hpp index 89a509af..48ed6ca9 100644 --- a/src/object-store/src/util/thread_local.hpp +++ b/src/object-store/src/util/thread_local.hpp @@ -21,7 +21,7 @@ #include -#if __has_feature(tls) || __has_feature(cxx_thread_local) +#if !defined(__clang__) || REALM_HAVE_CLANG_FEATURE(tls) || REALM_HAVE_CLANG_FEATURE(cxx_thread_local) #define REALM_THREAD_LOCAL_TYPE(type) REALM_THREAD_LOCAL type