Skip to content

Commit 411cae4

Browse files
committed
Define hbool_t same as in H5public.h (fixes #28)
1 parent 7ec53e6 commit 411cae4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libhdf5-sys/src/h5.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ pub use self::H5_iter_order_t::*;
66
use crate::internal_prelude::*;
77

88
pub type herr_t = c_int;
9-
pub type hbool_t = c_uint;
109
pub type htri_t = c_int;
1110
pub type hsize_t = c_ulonglong;
1211
pub type hssize_t = c_longlong;
1312
pub type haddr_t = uint64_t;
1413

14+
#[cfg(all(hdf5_1_10_0, h5_have_stdbool_h))]
15+
pub type hbool_t = u8;
16+
#[cfg(any(not(hdf5_1_10_0), not(h5_have_stdbool_h)))]
17+
pub type hbool_t = c_uint;
18+
1519
#[repr(C)]
1620
#[derive(Copy, Clone, PartialEq, PartialOrd, Debug)]
1721
pub enum H5_iter_order_t {

0 commit comments

Comments
 (0)