Commit 10fac3b for zlib
commit 10fac3bbd5eca5863f10a375b2f1c6410629e303
Author: Mark Adler <git@madler.net>
Date: Wed Nov 25 09:29:14 2026 -0800
Use #pragma instead of #warning on MSVC in zutil.h.
diff --git a/zutil.h b/zutil.h
index 9dc0007..cb4f1ac 100644
--- a/zutil.h
+++ b/zutil.h
@@ -383,7 +383,12 @@ local void z_once(z_once_t *state, void (*init)(void)) {
#else /* no atomics */
-#warning zlib not thread-safe
+#if defined(__GNUC__) || defined(__clang__) || \
+ (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
+# warning zlib not thread-safe
+#else
+# pragma message("zlib not thread-safe")
+#endif
typedef struct z_once_s {
volatile int begun;