File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -465,13 +465,6 @@ mod c_backend {
465
465
466
466
pub const MZ_DEFAULT_WINDOW_BITS : c_int = 15 ;
467
467
468
- #[ cfg( feature = "zlib-ng" ) ]
469
- const ZLIB_VERSION : & str = "2.1.0.devel\0 " ;
470
- #[ cfg( all( not( feature = "zlib-ng" ) , feature = "zlib-rs" ) ) ]
471
- const ZLIB_VERSION : & str = "1.3.0-zlib-rs-0.5.1\0 " ;
472
- #[ cfg( not( any( feature = "zlib-ng" , feature = "zlib-rs" ) ) ) ]
473
- const ZLIB_VERSION : & str = "1.2.8\0 " ;
474
-
475
468
pub unsafe extern "C" fn mz_deflateInit2 (
476
469
stream : * mut mz_stream ,
477
470
level : c_int ,
@@ -487,15 +480,15 @@ mod c_backend {
487
480
window_bits,
488
481
mem_level,
489
482
strategy,
490
- ZLIB_VERSION . as_ptr ( ) as * const c_char ,
483
+ zlibVersion ( ) ,
491
484
mem:: size_of :: < mz_stream > ( ) as c_int ,
492
485
)
493
486
}
494
487
pub unsafe extern "C" fn mz_inflateInit2 ( stream : * mut mz_stream , window_bits : c_int ) -> c_int {
495
488
libz:: inflateInit2_ (
496
489
stream,
497
490
window_bits,
498
- ZLIB_VERSION . as_ptr ( ) as * const c_char ,
491
+ zlibVersion ( ) ,
499
492
mem:: size_of :: < mz_stream > ( ) as c_int ,
500
493
)
501
494
}
You can’t perform that action at this time.
0 commit comments