From 3af42c98d012b251347cadf5b8b7eccbd57ca8d5 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Thu, 18 Apr 2019 11:22:54 +0200 Subject: [PATCH] Add support for HDF5 >= 1.10 --- src/hdf5_array.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hdf5_array.hpp b/src/hdf5_array.hpp index f6d2f29..8e222f8 100644 --- a/src/hdf5_array.hpp +++ b/src/hdf5_array.hpp @@ -52,7 +52,11 @@ knowledge of the CeCILL license and that you accept its terms. namespace CosmoTool { #if H5_VERSION_GE(1,8,20) +#if H5_VERSION_GE(1,10,1) + typedef H5::H5Location H5_CommonFileGroup; +#else typedef H5::CommonFG H5_CommonFileGroup; +#endif #else typedef H5::Group H5_CommonFileGroup; #endif