Merge pull request #2695 from mathstuf/hdf5-api-checks

hdf5open: check for the H5L info structure version directly
This commit is contained in:
Ward Fisher 2023-05-08 14:47:43 -06:00 committed by GitHub
commit c82f0236a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2721,7 +2721,7 @@ oinfo_list_add(user_data_t *udata, const hdf5_obj_info_t *oinfo)
*/ */
static int static int
read_hdf5_obj(hid_t grpid, const char *name, read_hdf5_obj(hid_t grpid, const char *name,
#if H5_VERSION_GE(1,12,0) #if defined(H5Lget_info_vers) && H5Lget_info_vers == 2
const H5L_info2_t *info, const H5L_info2_t *info,
#else #else
const H5L_info_t *info, const H5L_info_t *info,