From 586ab8edb557202baf73091335efdead1a713f43 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 5 Aug 2013 16:29:00 -0700 Subject: [PATCH] Fix clang detection of thread_local variables The "0" must have been added because there was no __has_feature for the feature back in the day. Now it exists. Change-Id: I50f0544ae82a8be54a8d26da400e31c1906dad9e Reviewed-by: Olivier Goffart --- src/corelib/global/qcompilerdetection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index b685c1fe0d4..f899d63a4da 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -584,7 +584,7 @@ # if __has_feature(cxx_alias_templates) # define Q_COMPILER_TEMPLATE_ALIAS # endif -# if 0 /* not implemented in clang yet */ +# if __has_feature(cxx_thread_local) # define Q_COMPILER_THREAD_LOCAL # endif # if __has_feature(cxx_user_literals)