mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Add MINIZ_NO_DEFLATE_APIS and MINIZ_NO_INFLATE_APIS
This commit is contained in:
		
							
								
								
									
										8
									
								
								miniz.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								miniz.c
									
									
									
									
									
								
							| @@ -186,6 +186,8 @@ const char *mz_version(void) | ||||
|  | ||||
| #ifndef MINIZ_NO_ZLIB_APIS | ||||
|  | ||||
| #ifndef MINIZ_NO_DEFLATE_APIS | ||||
|  | ||||
| int mz_deflateInit(mz_streamp pStream, int level) | ||||
| { | ||||
|     return mz_deflateInit2(pStream, level, MZ_DEFLATED, MZ_DEFAULT_WINDOW_BITS, 9, MZ_DEFAULT_STRATEGY); | ||||
| @@ -353,6 +355,10 @@ mz_ulong mz_compressBound(mz_ulong source_len) | ||||
|     return mz_deflateBound(NULL, source_len); | ||||
| } | ||||
|  | ||||
| #endif /*#ifndef MINIZ_NO_DEFLATE_APIS*/ | ||||
|  | ||||
| #ifndef MINIZ_NO_INFLATE_APIS | ||||
|  | ||||
| typedef struct | ||||
| { | ||||
|     tinfl_decompressor m_decomp; | ||||
| @@ -588,6 +594,8 @@ int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char | ||||
|     return mz_uncompress2(pDest, pDest_len, pSource, &source_len); | ||||
| } | ||||
|  | ||||
| #endif /*#ifndef MINIZ_NO_INFLATE_APIS*/ | ||||
|  | ||||
| const char *mz_error(int err) | ||||
| { | ||||
|     static struct | ||||
|   | ||||
		Reference in New Issue
	
	Block a user