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:
		| @@ -720,6 +720,7 @@ int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size, | ||||
|     return result; | ||||
| } | ||||
|  | ||||
| #ifndef MINIZ_NO_MALLOC | ||||
| tinfl_decompressor *tinfl_decompressor_alloc() | ||||
| { | ||||
|     tinfl_decompressor *pDecomp = (tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor)); | ||||
| @@ -732,6 +733,7 @@ void tinfl_decompressor_free(tinfl_decompressor *pDecomp) | ||||
| { | ||||
|     MZ_FREE(pDecomp); | ||||
| } | ||||
| #endif | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user