[gzip] Fix static linking.

Without this patch, static linking with MS Visual Studio causes linking
errors.

* src/gzip/ftgzip.c: Set `ZEXPORT` to nothing and `ZEXTERN` to static for
all compilers.
This commit is contained in:
ubawurinna 2023-03-01 10:16:59 +01:00 committed by Werner Lemberg
parent d874ffa96c
commit 79c8bd9110
1 changed files with 2 additions and 3 deletions

View File

@ -70,10 +70,9 @@
/* so that configuration with `FT_CONFIG_OPTION_SYSTEM_ZLIB' might */
/* include the wrong `zconf.h' file, leading to errors. */
#if defined( __GNUC__ ) || defined( __clang__ )
#define ZEXPORT
#define ZEXTERN static
#endif
/* prevent zlib functions from being visible outside their object files */
#define ZEXTERN static
#define HAVE_MEMCPY 1
#define Z_SOLO 1