From 0a9cf0b02a31c4add897990cf9a80b1cd1b660b4 Mon Sep 17 00:00:00 2001 From: Matthew Sitton Date: Sat, 25 Jun 2016 10:09:03 -0500 Subject: [PATCH] add C++ extern in zip header. --- miniz_zip.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/miniz_zip.h b/miniz_zip.h index 68b7d50..2897adf 100644 --- a/miniz_zip.h +++ b/miniz_zip.h @@ -3,6 +3,11 @@ #include "miniz.h" // ------------------- ZIP archive reading/writing + +#ifdef __cplusplus +extern "C" { +#endif + enum { MZ_ZIP_MAX_IO_BUF_SIZE = 64 * 1024, @@ -187,3 +192,7 @@ mz_bool mz_zip_add_mem_to_archive_file_in_place(const char *pZip_filename, const void *mz_zip_extract_archive_file_to_heap(const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint zip_flags); #endif // #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS + +#ifdef __cplusplus +} +#endif