From: Nathan Moinvaziri Date: Sat, 26 Jun 2021 00:23:56 +0000 (-0700) Subject: Use STDC11 defined earlier in zbuild.h for Z_TLS check. X-Git-Tag: 2.1.0-beta1~533 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa7b0bb5fb158139618c11d9ba6e54d97b12161;p=thirdparty%2Fzlib-ng.git Use STDC11 defined earlier in zbuild.h for Z_TLS check. --- diff --git a/zbuild.h b/zbuild.h index e47acf536..dc90e1103 100644 --- a/zbuild.h +++ b/zbuild.h @@ -17,7 +17,7 @@ /* Determine compiler support for TLS */ #ifndef Z_TLS -# if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__ +# if defined(STDC11) && !defined(__STDC_NO_THREADS__) # define Z_TLS _Thread_local # elif defined(__GNUC__) || defined(__SUNPRO_C) # define Z_TLS __thread