From cf1368291d3f00469b6af55cea0ec7a053189232 Mon Sep 17 00:00:00 2001 From: Marc Howison Date: Tue, 23 Mar 2010 22:18:40 +0000 Subject: [PATCH] fixed the H5PART_HAVE_HDF5_18 logic to work with the 1.9 snapshot; fixed broken test in _H5Part_have_group in the codepath for HDF5 1.6 --- src/H5Part.c | 2 +- src/H5PartPrivate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Part.c b/src/H5Part.c index 0ecb0f3..34030d7 100644 --- a/src/H5Part.c +++ b/src/H5Part.c @@ -2038,7 +2038,7 @@ _H5Part_have_group ( #else herr_t exists = 0; H5E_BEGIN_TRY - H5Gget_objinfo( id, name, 1, NULL ); + exists = H5Gget_objinfo( id, name, 1, NULL ); H5E_END_TRY return (exists >= 0 ? 1 : 0); #endif diff --git a/src/H5PartPrivate.h b/src/H5PartPrivate.h index ec0a68b..a5f3bfc 100644 --- a/src/H5PartPrivate.h +++ b/src/H5PartPrivate.h @@ -6,7 +6,7 @@ #define H5_USE_16_API #endif -#if H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 8 +#if H5_VERS_MAJOR == 1 && H5_VERS_MINOR >= 8 #define H5PART_HAVE_HDF5_18 #endif