thread_local appears to be unavailable on ARMV7 iOS

This commit is contained in:
Martin Kroeker 2020-04-01 17:53:40 +02:00 committed by GitHub
parent 2d7209fdb5
commit abfc80a5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@
defined __BORLANDC__ ) defined __BORLANDC__ )
# define thread_local __declspec(thread) # define thread_local __declspec(thread)
/* note that ICC (linux) and Clang are covered by __GNUC__ */ /* note that ICC (linux) and Clang are covered by __GNUC__ */
# elif defined __GNUC__ || \ # elif (defined __GNUC__ || \
defined __SUNPRO_C || \ defined __SUNPRO_C || \
defined __xlC__ defined __xlC__) && !defined(__APPLE__)
# define thread_local __thread # define thread_local __thread
# else # else
# define UNSAFE # define UNSAFE