aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2005-06-04 22:24:04 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2005-06-04 22:24:04 +0000
commitf87c3529a8cb608c8c6aa45c4107498ef88207d8 (patch)
treeaa1b2b3c7559402dbc037cad65ec79d3e7be3848 /lib/libarchive/archive_entry.h
parent43b1ef9bc25447013f50b69420ea4df25988e560 (diff)
Support libarchive with C++ by adding appropriate conditional
extern "C" declarations.
Notes
Notes: svn path=/head/; revision=146978
Diffstat (limited to 'lib/libarchive/archive_entry.h')
-rw-r--r--lib/libarchive/archive_entry.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.h b/lib/libarchive/archive_entry.h
index c4d494b57986..dec8b960d8b4 100644
--- a/lib/libarchive/archive_entry.h
+++ b/lib/libarchive/archive_entry.h
@@ -32,6 +32,12 @@
#include <unistd.h>
#include <wchar.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/*
* Description of an archive entry.
*
@@ -215,4 +221,9 @@ int archive_entry_acl_count(struct archive_entry *, int want_type);
int __archive_entry_acl_parse_w(struct archive_entry *,
const wchar_t *, int type);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* !ARCHIVE_ENTRY_H_INCLUDED */