summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2010-09-20 21:57:57 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2010-09-20 21:57:57 (GMT)
commitd688fc55a94acc6bdf43607e5224bc28009ee5e8 (patch)
treee46dc5152aafe70254b02c330bcf5fa2ecf6d892 /src/H5.c
parentd3d78bbd1be7dddd41b2a9f7e25ea42ce2192ddd (diff)
downloadhdf5-d688fc55a94acc6bdf43607e5224bc28009ee5e8.zip
hdf5-d688fc55a94acc6bdf43607e5224bc28009ee5e8.tar.gz
hdf5-d688fc55a94acc6bdf43607e5224bc28009ee5e8.tar.bz2
[svn-r19441] Bug fix for 1707 - in a hurry, explain later.
tested on jam and amani, heiwa hasn't finished yet.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5.c b/src/H5.c
index 045c65b..ca4402b 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -210,7 +210,7 @@ H5_term_library(void)
int pending, ntries = 0, n;
size_t at = 0;
char loop[1024];
- H5E_auto2_t func;
+ H5E_auto_t func;
#ifdef H5_HAVE_THREADSAFE
/* explicit locking of the API */
@@ -223,8 +223,11 @@ H5_term_library(void)
goto done;
/* Check if we should display error output */
- (void)H5Eget_auto2(H5E_DEFAULT, &func, NULL);
-
+#ifdef H5_USE_16_API_DEFAULT
+ (void)H5Eget_auto(&func, NULL);
+#else
+ (void)H5Eget_auto(H5E_DEFAULT, &func, NULL);
+#endif
/*
* Terminate each interface. The termination functions return a positive
* value if they do something that might affect some other interface in a