aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-12-30 23:00:00 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-12-30 23:00:00 +0000
commit36dffdb4e5effde2bd3d527e5b3d2162011e2f0d (patch)
treee3891508b29732d5fa77f379495091a98ddcadcd /libarchive/archive_entry.h
parent79b08f16f5ddb1d3863d84ec051211a8b0b082d9 (diff)
downloadsrc-36dffdb4e5effde2bd3d527e5b3d2162011e2f0d.tar.gz
src-36dffdb4e5effde2bd3d527e5b3d2162011e2f0d.zip
Update vendor/libarchive to git ab94a813b0f64cbc1bcb952bf55424a2d9c7f1d9
Vendor bugfixes: Use __LA_DEPRECATED macro with functions deprecated in 379867e (r310796)
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=310869
Diffstat (limited to 'libarchive/archive_entry.h')
-rw-r--r--libarchive/archive_entry.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h
index 0f09b985029b..9f1955bdbb99 100644
--- a/libarchive/archive_entry.h
+++ b/libarchive/archive_entry.h
@@ -105,6 +105,12 @@ typedef int64_t la_int64_t;
# define __LA_DECL
#endif
+#if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
+# define __LA_DEPRECATED __attribute__((deprecated))
+#else
+# define __LA_DEPRECATED
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -529,9 +535,9 @@ __LA_DECL int archive_entry_acl_from_text(struct archive_entry *,
/* Deprecated functions */
__LA_DECL const wchar_t *archive_entry_acl_text_w(struct archive_entry *,
- int /* flags */) __attribute__ ((deprecated));
+ int /* flags */) __LA_DEPRECATED;
__LA_DECL const char *archive_entry_acl_text(struct archive_entry *,
- int /* flags */) __attribute__ ((deprecated));
+ int /* flags */) __LA_DEPRECATED;
/* Return bitmask of ACL types in an archive entry */
__LA_DECL int archive_entry_acl_types(struct archive_entry *);