hdf5: fix oinfo bug occuring for older hdf5 versions
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Christian Zimmermann 2024-02-02 20:28:22 +01:00
parent 2023d64a5f
commit dc7137f400

View file

@ -180,10 +180,9 @@ namespace CNORXZ
index();
H5O_info_t oinfo;
#if H5_VERS_MINOR > 10
//H5Oget_info(id, &oinfo, H5O_INFO_BASIC);
H5Oget_info_by_name(id, name, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT);
#else
H5Oget_info(id, &oinfo);
H5Oget_info_by_name(id, name, &oinfo, H5P_DEFAULT);
#endif
switch (oinfo.type) {
case H5O_TYPE_GROUP: {