mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Move comp/decomp alloc/free prototypes under guarding #ifndef
Function implemenations are already guarded by #ifndef MZ_NO_MALLOC, so let's put prototypes under the same #ifndef. Also, while we are at it, make those prototypes standard-compliant by adding void argument. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
This commit is contained in:
		| @@ -177,11 +177,13 @@ mz_uint32 tdefl_get_adler32(tdefl_compressor *d); | ||||
| /* strategy may be either MZ_DEFAULT_STRATEGY, MZ_FILTERED, MZ_HUFFMAN_ONLY, MZ_RLE, or MZ_FIXED */ | ||||
| mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy); | ||||
|  | ||||
| #ifndef MINIZ_NO_MALLOC | ||||
| /* Allocate the tdefl_compressor structure in C so that */ | ||||
| /* non-C language bindings to tdefl_ API don't need to worry about */ | ||||
| /* structure size and allocation mechanism. */ | ||||
| tdefl_compressor *tdefl_compressor_alloc(); | ||||
| tdefl_compressor *tdefl_compressor_alloc(void); | ||||
| void tdefl_compressor_free(tdefl_compressor *pComp); | ||||
| #endif | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user