Skip to content

Commit

Permalink
export zlibVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Aug 3, 2024
1 parent 3c8175f commit 22fc182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libz-rs-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ unsafe fn is_version_compatible(version: *const c_char, stream_size: i32) -> boo
core::mem::size_of::<z_stream>() as i32 == stream_size
}

#[export_name = prefix!(zlibVersion)]
pub const extern "C" fn zlibVersion() -> *const c_char {
LIBZ_RS_SYS_VERSION.as_ptr() as *const c_char
}

0 comments on commit 22fc182

Please sign in to comment.