Skip to content

Commit

Permalink
Add __has_feature check for thread_local keyword support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Mar 25, 2013
1 parent f9b9f08 commit 104bb6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scheduler.cpp
Expand Up @@ -38,7 +38,8 @@
#include "work_steal_queue.h"

// thread_local keyword support
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 408 && !defined(__MINGW32__)
#if __has_feature(cxx_thread_local) || \
(__GNUC__ * 100 + __GNUC_MINOR__ >= 408 && !defined(__MINGW32__))
# define HAVE_THREAD_LOCAL
#endif

Expand Down

0 comments on commit 104bb6f

Please sign in to comment.