Skip to content

Commit

Permalink
Try to fix z_off_t test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Jun 15, 2023
1 parent 689d3ba commit dde2cdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ pub type z_off_t = libc::off_t;
))]
pub type z_off_t = c_long;

#[cfg(zng)]
#[cfg(all(zng, windows, not(target_env = "gnu")))]
pub type z_off_t = i64;

#[cfg(all(zng, not(all(windows, not(target_env = "gnu")))))]
pub type z_off_t = libc::off_t;

#[repr(C)]
#[derive(Copy, Clone)]
pub struct gz_header {
Expand Down

0 comments on commit dde2cdb

Please sign in to comment.