diff options
author | ubawurinna <you@example.com> | 2023-03-01 10:16:59 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2023-03-01 18:09:56 +0100 |
commit | 79c8bd91100af8d1b8df82269815a95ca1e91ead (patch) | |
tree | 067cb597bb1861c139deea2861b262b127b44938 /src/gzip/ftgzip.c | |
parent | d874ffa96ccad7dd122cdc369a284d171e221809 (diff) | |
download | freetype2-79c8bd91100af8d1b8df82269815a95ca1e91ead.tar.gz |
[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.
Diffstat (limited to 'src/gzip/ftgzip.c')
-rw-r--r-- | src/gzip/ftgzip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c index 48da6ff9c..ca6a2aabe 100644 --- a/src/gzip/ftgzip.c +++ b/src/gzip/ftgzip.c @@ -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 |