Skip to content

Commit 0fcab55

Browse files
committed
BUG: Allow compilation against hdf5 1.14 versions.
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
1 parent ae4ede4 commit 0fcab55

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Source/H5Support/H5Utilities.h

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,24 @@
5555
#endif
5656

5757
#if(H5_VERS_MINOR == 10)
58-
#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V18
59-
#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V18
58+
#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110
59+
#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V110
6060
#endif
6161

6262
#if(H5_VERS_MINOR == 12)
63-
#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V18
63+
#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110
6464
#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V18
6565
#endif
6666

67+
#if(H5_VERS_MINOR == 14)
68+
#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110
69+
#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V110
70+
#endif
71+
72+
#ifndef HDF5_VERSION_LIB_LOWER_BOUNDS
73+
#error HDF5_VERSION_LIB_LOWER_BOUNDS is not defined. Please check the version of HDF5 that you are compiling against
74+
#endif
75+
6776
namespace H5Support {
6877

6978
#define ENABLE_BITMASK_OPERATORS(x) \

0 commit comments

Comments
 (0)