From 5a5a014f07dba70c0728c67673eb3ee5fe10e71a Mon Sep 17 00:00:00 2001 From: Matthew Sitton Date: Sat, 25 Jun 2016 10:56:14 -0500 Subject: [PATCH] add more extern c blocks. --- miniz_tdef.h | 7 +++++++ miniz_tinfl.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/miniz_tdef.h b/miniz_tdef.h index ad42684..a494b7b 100644 --- a/miniz_tdef.h +++ b/miniz_tdef.h @@ -1,6 +1,9 @@ #pragma once #include "miniz_common.h" +#ifdef __cplusplus +extern "C" { +#endif // ------------------- Low-level Compression API Definitions // Set TDEFL_LESS_MEMORY to 1 to use less memory (compression will be slightly slower, and raw/dynamic blocks will be output more frequently). @@ -184,3 +187,7 @@ mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int // structure size and allocation mechanism. tdefl_compressor *tdefl_compressor_alloc(); void tdefl_compressor_free(tdefl_compressor *pComp); + +#ifdef __cplusplus +} +#endif diff --git a/miniz_tinfl.h b/miniz_tinfl.h index 7275e43..d1c5ecd 100644 --- a/miniz_tinfl.h +++ b/miniz_tinfl.h @@ -2,6 +2,9 @@ #include "miniz_common.h" // ------------------- Low-level Decompression API Definitions +#ifdef __cplusplus +extern "C" { +#endif // Decompression flags used by tinfl_decompress(). // TINFL_FLAG_PARSE_ZLIB_HEADER: If set, the input has a valid zlib header and ends with an adler32 checksum (it's a valid zlib stream). Otherwise, the input is a raw deflate stream. // TINFL_FLAG_HAS_MORE_INPUT: If set, there are more input bytes available beyond the end of the supplied input buffer. If clear, the input buffer contains all remaining input. @@ -133,3 +136,7 @@ struct tinfl_decompressor_tag tinfl_huff_table m_tables[TINFL_MAX_HUFF_TABLES]; mz_uint8 m_raw_header[4], m_len_codes[TINFL_MAX_HUFF_SYMBOLS_0 + TINFL_MAX_HUFF_SYMBOLS_1 + 137]; }; + +#ifdef __cplusplus +} +#endif