From 1f92ebe7172b77c1b71cba6a76ad35799535df53 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Fri, 3 Nov 2017 17:31:34 +0100 Subject: [PATCH] Do not expose unmangled ZLIB_VERSION and ZLIB_VERNUM needlessly Before this change, ZLIB_VERSION and ZLIB_VERNUM were unmangled TLS variables. That exposure was unneeded, and could lead to some clash with other zlib binding which would prevent linking. --- etc/c/zlib.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/c/zlib.d b/etc/c/zlib.d index b3e9783389c..07f50a1fb13 100644 --- a/etc/c/zlib.d +++ b/etc/c/zlib.d @@ -40,8 +40,9 @@ import core.stdc.config; nothrow: extern (C): -const char[] ZLIB_VERSION = "1.2.11"; -const ZLIB_VERNUM = 0x12b0; +// Those are extern(D) as they should be mangled +extern(D) immutable string ZLIB_VERSION = "1.2.11"; +extern(D) immutable ZLIB_VERNUM = 0x12b0; /* The 'zlib' compression library provides in-memory compression and