From 35c2d67bcf7a649dd0f0e727ed200c26eb656946 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 13 Mar 2017 19:49:01 +0100 Subject: [PATCH] Fix compilation with the various omission compile definitions --- miniz_zip.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniz_zip.h b/miniz_zip.h index c4185ca..3440f93 100644 --- a/miniz_zip.h +++ b/miniz_zip.h @@ -4,6 +4,8 @@ /* ------------------- ZIP archive reading/writing */ +#ifndef MINIZ_NO_ARCHIVE_APIS + #ifdef __cplusplus extern "C" { #endif @@ -406,3 +408,5 @@ void *mz_zip_extract_archive_file_to_heap_v2(const char *pZip_filename, const ch #ifdef __cplusplus } #endif + +#endif /* MINIZ_NO_ARCHIVE_APIS */