From 5235554eb4071c798fef9b29f46e9c96970055ea Mon Sep 17 00:00:00 2001 From: Yuri Gribov Date: Sun, 3 Jul 2022 10:54:39 +0300 Subject: Hide internal symbols on platforms that support visibility annotations (see discussion in gh-1017). --- libarchive/archive.h | 2 ++ libarchive/archive_entry.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'libarchive') diff --git a/libarchive/archive.h b/libarchive/archive.h index 7f58a1f2..dcb8b0df 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -120,6 +120,8 @@ typedef ssize_t la_ssize_t; # define __LA_DECL __declspec(dllimport) # endif # endif +#elif defined __LIBARCHIVE_ENABLE_VISIBILITY +# define __LA_DECL __attribute__((visibility("default"))) #else /* Static libraries or non-Windows needs no special declaration. */ # define __LA_DECL diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h index 450b3cf9..e579e9f3 100644 --- a/libarchive/archive_entry.h +++ b/libarchive/archive_entry.h @@ -122,6 +122,8 @@ typedef ssize_t la_ssize_t; # define __LA_DECL __declspec(dllimport) # endif # endif +#elif defined __LIBARCHIVE_ENABLE_VISIBILITY +# define __LA_DECL __attribute__((visibility("default"))) #else /* Static libraries on all platforms and shared libraries on non-Windows. */ # define __LA_DECL -- cgit v1.2.1 From 120bef7014399259c8efefcde85e3bca67318c25 Mon Sep 17 00:00:00 2001 From: Yuri Gribov Date: Wed, 27 Jul 2022 21:30:57 +0300 Subject: Added missing file to CMakeLists. --- libarchive/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'libarchive') diff --git a/libarchive/CMakeLists.txt b/libarchive/CMakeLists.txt index 44895ce3..ff7ade00 100644 --- a/libarchive/CMakeLists.txt +++ b/libarchive/CMakeLists.txt @@ -82,6 +82,7 @@ SET(libarchive_SOURCES archive_read_set_format.c archive_read_set_options.c archive_read_support_filter_all.c + archive_read_support_filter_by_code.c archive_read_support_filter_bzip2.c archive_read_support_filter_compress.c archive_read_support_filter_gzip.c -- cgit v1.2.1