visibility.patch 344 B

12345678910111213141516
  1. --- a/zconf.h
  2. +++ b/zconf.h
  3. @@ -373,6 +373,13 @@
  4. # endif
  5. #endif
  6. +#if !defined(WINDOWS) && !defined(WIN32) && !defined(__BEOS__)
  7. +# ifdef ZLIB_DLL
  8. +# define ZEXPORT __attribute__((visibility("default")))
  9. +# define ZEXPORTVA __attribute__((visibility("default")))
  10. +# endif
  11. +#endif
  12. +
  13. #ifndef ZEXTERN
  14. # define ZEXTERN extern
  15. #endif