hdf5: H5Oget_info: distinguish between versions

This commit is contained in:
Christian Zimmermann 2023-01-18 19:12:41 +01:00
parent 835b8e885f
commit 02174f8371

View file

@ -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<Group>(sname, icd->parent);