summaryrefslogtreecommitdiff
path: root/libarchive/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive.h')
-rw-r--r--libarchive/archive.h2
1 files changed, 2 insertions, 0 deletions
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