mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	add C++ extern in zip header.
This commit is contained in:
		| @@ -3,6 +3,11 @@ | |||||||
| #include "miniz.h" | #include "miniz.h" | ||||||
|  |  | ||||||
| // ------------------- ZIP archive reading/writing | // ------------------- ZIP archive reading/writing | ||||||
|  |  | ||||||
|  | #ifdef __cplusplus | ||||||
|  | extern "C" { | ||||||
|  | #endif | ||||||
|  |  | ||||||
| enum | enum | ||||||
| { | { | ||||||
|     MZ_ZIP_MAX_IO_BUF_SIZE = 64 * 1024, |     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); | 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 | #endif // #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS | ||||||
|  |  | ||||||
|  | #ifdef __cplusplus | ||||||
|  | } | ||||||
|  | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user