From 0fcab55bcd7a2a9fbb065ba597ac97251c90e651 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sat, 15 Jul 2023 16:16:43 -0400 Subject: [PATCH] BUG: Allow compilation against hdf5 1.14 versions. Signed-off-by: Michael Jackson --- Source/H5Support/H5Utilities.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Source/H5Support/H5Utilities.h b/Source/H5Support/H5Utilities.h index de53607..384d78f 100644 --- a/Source/H5Support/H5Utilities.h +++ b/Source/H5Support/H5Utilities.h @@ -55,15 +55,24 @@ #endif #if(H5_VERS_MINOR == 10) -#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V18 -#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V18 +#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110 +#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V110 #endif #if(H5_VERS_MINOR == 12) -#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V18 +#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110 #define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V18 #endif +#if(H5_VERS_MINOR == 14) +#define HDF5_VERSION_LIB_LOWER_BOUNDS H5F_LIBVER_V110 +#define HDF5_VERSION_LIB_UPPER_BOUNDS H5F_LIBVER_V110 +#endif + +#ifndef HDF5_VERSION_LIB_LOWER_BOUNDS +#error HDF5_VERSION_LIB_LOWER_BOUNDS is not defined. Please check the version of HDF5 that you are compiling against +#endif + namespace H5Support { #define ENABLE_BITMASK_OPERATORS(x) \