]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use STDC11 defined earlier in zbuild.h for Z_TLS check.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 26 Jun 2021 00:23:56 +0000 (17:23 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Jul 2021 17:55:08 +0000 (19:55 +0200)
zbuild.h

index e47acf5368f35974d2c127d4db2efe5651e53c74..dc90e11038e7824347f8468664eb699ec927ba62 100644 (file)
--- 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