diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-12-31 02:19:12 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-01-17 13:40:53 +0100 |
commit | 6cacb65f3383ba3e3d7351bed18a01b76dfb6521 (patch) | |
tree | e70560e4c80c3e7f7bd48a34b383c03d588ade62 /m4/ax_tls.m4 | |
parent | 205a8efdd9e678872523bc10e05d0ebaca5150c3 (diff) | |
download | autoconf-archive-6cacb65f3383ba3e3d7351bed18a01b76dfb6521.tar.gz |
ax_tls.m4: _Thread_local storage-class specifier
ISO/IEC 9899:2011 defines the _Thread_local storage-class specifier.
We should test for it before testing for any pre C11 specifiers.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'm4/ax_tls.m4')
-rw-r--r-- | m4/ax_tls.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_tls.m4 b/m4/ax_tls.m4 index 809b761..29fd149 100644 --- a/m4/ax_tls.m4 +++ b/m4/ax_tls.m4 @@ -44,12 +44,12 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 11 +#serial 12 AC_DEFUN([AX_TLS], [ AC_MSG_CHECKING([for thread local storage (TLS) class]) AC_CACHE_VAL([ac_cv_tls], - [for ax_tls_keyword in __thread '__declspec(thread)' none; do + [for ax_tls_keyword in _Thread_local __thread '__declspec(thread)' none; do AS_CASE([$ax_tls_keyword], [none], [ac_cv_tls=none ; break], [AC_TRY_COMPILE( |