@@ -219,13 +219,13 @@ static void slide_hash(deflate_state *s) {
219
219
}
220
220
221
221
/* ========================================================================= */
222
- int ZEXPORT deflateInit_ (z_stream * strm , int level , const char * version , int stream_size ) {
223
- return deflateInit2_ (strm , level , Z_DEFLATED , MAX_WBITS , DEF_MEM_LEVEL , Z_DEFAULT_STRATEGY , version , stream_size );
222
+ int ZEXPORT PREFIX ( deflateInit_ ) (z_stream * strm , int level , const char * version , int stream_size ) {
223
+ return PREFIX ( deflateInit2_ ) (strm , level , Z_DEFLATED , MAX_WBITS , DEF_MEM_LEVEL , Z_DEFAULT_STRATEGY , version , stream_size );
224
224
/* Todo: ignore strm->next_in if we use it as window */
225
225
}
226
226
227
227
/* ========================================================================= */
228
- int ZEXPORT deflateInit2_ (z_stream * strm , int level , int method , int windowBits ,
228
+ int ZEXPORT PREFIX ( deflateInit2_ ) (z_stream * strm , int level , int method , int windowBits ,
229
229
int memLevel , int strategy , const char * version , int stream_size ) {
230
230
unsigned window_padding = 0 ;
231
231
deflate_state * s ;
@@ -364,7 +364,7 @@ static int deflateStateCheck (z_stream *strm) {
364
364
}
365
365
366
366
/* ========================================================================= */
367
- int ZEXPORT deflateSetDictionary (z_stream * strm , const unsigned char * dictionary , unsigned int dictLength ) {
367
+ int ZEXPORT PREFIX ( deflateSetDictionary ) (z_stream * strm , const unsigned char * dictionary , unsigned int dictLength ) {
368
368
deflate_state * s ;
369
369
unsigned int str , n ;
370
370
int wrap ;
@@ -422,7 +422,7 @@ int ZEXPORT deflateSetDictionary(z_stream *strm, const unsigned char *dictionary
422
422
}
423
423
424
424
/* ========================================================================= */
425
- int ZEXPORT deflateGetDictionary (z_stream * strm , unsigned char * dictionary , unsigned int * dictLength ) {
425
+ int ZEXPORT PREFIX ( deflateGetDictionary ) (z_stream * strm , unsigned char * dictionary , unsigned int * dictLength ) {
426
426
deflate_state * s ;
427
427
unsigned int len ;
428
428
@@ -440,7 +440,7 @@ int ZEXPORT deflateGetDictionary (z_stream *strm, unsigned char *dictionary, uns
440
440
}
441
441
442
442
/* ========================================================================= */
443
- int ZEXPORT deflateResetKeep (z_stream * strm ) {
443
+ int ZEXPORT PREFIX ( deflateResetKeep ) (z_stream * strm ) {
444
444
deflate_state * s ;
445
445
446
446
if (deflateStateCheck (strm )) {
@@ -478,7 +478,7 @@ int ZEXPORT deflateResetKeep(z_stream *strm) {
478
478
}
479
479
480
480
/* ========================================================================= */
481
- int ZEXPORT deflateReset (z_stream * strm ) {
481
+ int ZEXPORT PREFIX ( deflateReset ) (z_stream * strm ) {
482
482
int ret ;
483
483
484
484
ret = deflateResetKeep (strm );
@@ -488,15 +488,15 @@ int ZEXPORT deflateReset(z_stream *strm) {
488
488
}
489
489
490
490
/* ========================================================================= */
491
- int ZEXPORT deflateSetHeader (z_stream * strm , gz_headerp head ) {
491
+ int ZEXPORT PREFIX ( deflateSetHeader ) (z_stream * strm , gz_headerp head ) {
492
492
if (deflateStateCheck (strm ) || strm -> state -> wrap != 2 )
493
493
return Z_STREAM_ERROR ;
494
494
strm -> state -> gzhead = head ;
495
495
return Z_OK ;
496
496
}
497
497
498
498
/* ========================================================================= */
499
- int ZEXPORT deflatePending (z_stream * strm , uint32_t * pending , int * bits ) {
499
+ int ZEXPORT PREFIX ( deflatePending ) (z_stream * strm , uint32_t * pending , int * bits ) {
500
500
if (deflateStateCheck (strm ))
501
501
return Z_STREAM_ERROR ;
502
502
if (pending != NULL )
@@ -507,7 +507,7 @@ int ZEXPORT deflatePending(z_stream *strm, uint32_t *pending, int *bits) {
507
507
}
508
508
509
509
/* ========================================================================= */
510
- int ZEXPORT deflatePrime (z_stream * strm , int bits , int value ) {
510
+ int ZEXPORT PREFIX ( deflatePrime ) (z_stream * strm , int bits , int value ) {
511
511
deflate_state * s ;
512
512
int put ;
513
513
@@ -530,7 +530,7 @@ int ZEXPORT deflatePrime(z_stream *strm, int bits, int value) {
530
530
}
531
531
532
532
/* ========================================================================= */
533
- int ZEXPORT deflateParams (z_stream * strm , int level , int strategy ) {
533
+ int ZEXPORT PREFIX ( deflateParams ) (z_stream * strm , int level , int strategy ) {
534
534
deflate_state * s ;
535
535
compress_func func ;
536
536
@@ -573,7 +573,7 @@ int ZEXPORT deflateParams(z_stream *strm, int level, int strategy) {
573
573
}
574
574
575
575
/* ========================================================================= */
576
- int ZEXPORT deflateTune (z_stream * strm , int good_length , int max_lazy , int nice_length , int max_chain ) {
576
+ int ZEXPORT PREFIX ( deflateTune ) (z_stream * strm , int good_length , int max_lazy , int nice_length , int max_chain ) {
577
577
deflate_state * s ;
578
578
579
579
if (deflateStateCheck (strm ))
@@ -603,7 +603,7 @@ int ZEXPORT deflateTune(z_stream *strm, int good_length, int max_lazy, int nice_
603
603
* upper bound of about 14% expansion does not seem onerous for output buffer
604
604
* allocation.
605
605
*/
606
- unsigned long ZEXPORT deflateBound (z_stream * strm , unsigned long sourceLen ) {
606
+ unsigned long ZEXPORT PREFIX ( deflateBound ) (z_stream * strm , unsigned long sourceLen ) {
607
607
deflate_state * s ;
608
608
unsigned long complen , wraplen ;
609
609
@@ -708,7 +708,7 @@ ZLIB_INTERNAL void flush_pending(z_stream *strm) {
708
708
} while (0)
709
709
710
710
/* ========================================================================= */
711
- int ZEXPORT deflate (z_stream * strm , int flush ) {
711
+ int ZEXPORT PREFIX ( deflate ) (z_stream * strm , int flush ) {
712
712
int old_flush ; /* value of flush param for previous deflate call */
713
713
deflate_state * s ;
714
714
@@ -1025,7 +1025,7 @@ int ZEXPORT deflate(z_stream *strm, int flush) {
1025
1025
}
1026
1026
1027
1027
/* ========================================================================= */
1028
- int ZEXPORT deflateEnd (z_stream * strm ) {
1028
+ int ZEXPORT PREFIX ( deflateEnd ) (z_stream * strm ) {
1029
1029
int status ;
1030
1030
1031
1031
if (deflateStateCheck (strm ))
@@ -1048,7 +1048,7 @@ int ZEXPORT deflateEnd(z_stream *strm) {
1048
1048
/* =========================================================================
1049
1049
* Copy the source state to the destination state.
1050
1050
*/
1051
- int ZEXPORT deflateCopy (z_stream * dest , z_stream * source ) {
1051
+ int ZEXPORT PREFIX ( deflateCopy ) (z_stream * dest , z_stream * source ) {
1052
1052
deflate_state * ds ;
1053
1053
deflate_state * ss ;
1054
1054
uint16_t * overlay ;
0 commit comments