summaryrefslogtreecommitdiff
path: root/libarchive
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@acm.org>2022-07-31 09:06:34 -0700
committerGitHub <noreply@github.com>2022-07-31 09:06:34 -0700
commitbd9f5577abf5dc76a3d1d859619404451bc203d2 (patch)
tree26735b8a56cee35164f2d0a248596e8916d2cc0f /libarchive
parenta45905b0166713760a2fb4f2e908d7ce47488371 (diff)
parent120bef7014399259c8efefcde85e3bca67318c25 (diff)
downloadlibarchive-bd9f5577abf5dc76a3d1d859619404451bc203d2.tar.gz
Merge pull request #1751 from yugr/hide-symbols
Hide internal symbols on platforms that support visibility annotations
Diffstat (limited to 'libarchive')
-rw-r--r--libarchive/CMakeLists.txt1
-rw-r--r--libarchive/archive.h2
-rw-r--r--libarchive/archive_entry.h2
3 files changed, 5 insertions, 0 deletions
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
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