[git commit] cz: add C++ support to xz.h
Denys Vlasenko
vda.linux at googlemail.com
Wed Feb 27 15:37:18 UTC 2013
commit: http://git.busybox.net/busybox/commit/?id=efb800439fd29382404fe8044774903b3b52db3f
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Lasse Collin <lasse.collin at tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
archival/libarchive/unxz/xz.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/archival/libarchive/unxz/xz.h b/archival/libarchive/unxz/xz.h
index 6842ed7..e0b22db 100644
--- a/archival/libarchive/unxz/xz.h
+++ b/archival/libarchive/unxz/xz.h
@@ -19,6 +19,10 @@
# include <stdint.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* In Linux, this is used to make extern functions static when needed. */
#ifndef XZ_EXTERN
# define XZ_EXTERN extern
@@ -268,4 +272,9 @@ XZ_EXTERN void XZ_FUNC xz_crc32_init(void);
XZ_EXTERN uint32_t XZ_FUNC xz_crc32(
const uint8_t *buf, size_t size, uint32_t crc);
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the busybox-cvs
mailing list