freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] [gzip] Fix static linking.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [gzip] Fix static linking.
Date: Wed, 01 Mar 2023 17:12:22 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • 79c8bd91
    by ubawurinna at 2023-03-01T18:09:56+01:00
    [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.
    

1 changed file:

Changes:

  • src/gzip/ftgzip.c
    ... ... @@ -70,10 +70,9 @@
    70 70
       /* so that configuration with `FT_CONFIG_OPTION_SYSTEM_ZLIB' might   */
    
    71 71
       /* include the wrong `zconf.h' file, leading to errors.              */
    
    72 72
     
    
    73
    -#if defined( __GNUC__ ) ||  defined( __clang__ )
    
    74 73
     #define ZEXPORT
    
    75
    -#define ZEXTERN      static
    
    76
    -#endif
    
    74
    +  /* prevent zlib functions from being visible outside their object files */
    
    75
    +#define ZEXTERN  static
    
    77 76
     
    
    78 77
     #define HAVE_MEMCPY  1
    
    79 78
     #define Z_SOLO       1
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]