diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-02-27 16:37:18 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 16:37:18 +0100 |
commit | efb800439fd29382404fe8044774903b3b52db3f (patch) | |
tree | 205494b1d66810f8f03330599f4993ec69ddca69 | |
parent | aada3126a795d9ff406aa3029aee44019d7c0450 (diff) | |
download | busybox-w32-efb800439fd29382404fe8044774903b3b52db3f.tar.gz busybox-w32-efb800439fd29382404fe8044774903b3b52db3f.tar.bz2 busybox-w32-efb800439fd29382404fe8044774903b3b52db3f.zip |
cz: add C++ support to xz.h
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | 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 6842ed726..e0b22db56 100644 --- a/archival/libarchive/unxz/xz.h +++ b/archival/libarchive/unxz/xz.h | |||
@@ -19,6 +19,10 @@ | |||
19 | # include <stdint.h> | 19 | # include <stdint.h> |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #ifdef __cplusplus | ||
23 | extern "C" { | ||
24 | #endif | ||
25 | |||
22 | /* In Linux, this is used to make extern functions static when needed. */ | 26 | /* In Linux, this is used to make extern functions static when needed. */ |
23 | #ifndef XZ_EXTERN | 27 | #ifndef XZ_EXTERN |
24 | # define XZ_EXTERN extern | 28 | # define XZ_EXTERN extern |
@@ -268,4 +272,9 @@ XZ_EXTERN void XZ_FUNC xz_crc32_init(void); | |||
268 | XZ_EXTERN uint32_t XZ_FUNC xz_crc32( | 272 | XZ_EXTERN uint32_t XZ_FUNC xz_crc32( |
269 | const uint8_t *buf, size_t size, uint32_t crc); | 273 | const uint8_t *buf, size_t size, uint32_t crc); |
270 | #endif | 274 | #endif |
275 | |||
276 | #ifdef __cplusplus | ||
277 | } | ||
278 | #endif | ||
279 | |||
271 | #endif | 280 | #endif |