From 02174f83714511470634a5df4945ac0771a6440d Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 18 Jan 2023 19:12:41 +0100 Subject: [PATCH] hdf5: H5Oget_info: distinguish between versions --- src/opt/hdf5/lib/h5_group.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/opt/hdf5/lib/h5_group.cc b/src/opt/hdf5/lib/h5_group.cc index c56ff48..28de33c 100644 --- a/src/opt/hdf5/lib/h5_group.cc +++ b/src/opt/hdf5/lib/h5_group.cc @@ -126,7 +126,11 @@ namespace CNORXZ ui.at(sname); index(); H5O_info_t oinfo; +#if H5_VERS_MINOR > 10 H5Oget_info(id, &oinfo, H5O_INFO_BASIC); +#else + H5Oget_info(id, &oinfo); +#endif switch (oinfo.type) { case H5O_TYPE_GROUP: { *index = std::make_shared(sname, icd->parent);