From 9fc8ae62a8564e095ff17f4612874581db0e4db5 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 10 Apr 2021 19:51:58 -0600 Subject: [PATCH] Fix tst_h_atts3 for hdf5 1.12 --- h5_test/tst_h_atts3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h5_test/tst_h_atts3.c b/h5_test/tst_h_atts3.c index 48693768dd..924967ef79 100644 --- a/h5_test/tst_h_atts3.c +++ b/h5_test/tst_h_atts3.c @@ -209,7 +209,11 @@ main() hid_t file_typeid1[NUM_OBJ_1], native_typeid1[NUM_OBJ_1]; hid_t file_typeid2, native_typeid2; hsize_t num_obj; +#if H5_VERSION_GE(1,12,0) + H5O_info2_t obj_info; +#else H5O_info_t obj_info; +#endif char obj_name[STR_LEN + 1]; hsize_t dims[1] = {ATT_LEN}; /* netcdf attributes always 1-D. */