summaryrefslogtreecommitdiffstats
path: root/src/H5Pocpl.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-05-31 15:37:17 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-05-31 15:37:17 (GMT)
commit1187820c3bbd2fb21c3ca971e09e2df9317340d5 (patch)
tree8ea89b4a2e484f775d3193d8299a483ee851742f /src/H5Pocpl.c
parentcf0c06c96228f2b04305bb05d582f42741e81268 (diff)
downloadhdf5-1187820c3bbd2fb21c3ca971e09e2df9317340d5.zip
hdf5-1187820c3bbd2fb21c3ca971e09e2df9317340d5.tar.gz
hdf5-1187820c3bbd2fb21c3ca971e09e2df9317340d5.tar.bz2
[svn-r23721] I used H5_VMS macro to comment out the code for dynamic filter since we don't plan to support it on OpenVMS. I updated vms/src/h5pubconf.h, too.
Tested on jam but not on OpenVMS yet.
Diffstat (limited to 'src/H5Pocpl.c')
-rw-r--r--src/H5Pocpl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5Pocpl.c b/src/H5Pocpl.c
index 88ba1e1..27a41a1 100644
--- a/src/H5Pocpl.c
+++ b/src/H5Pocpl.c
@@ -804,16 +804,20 @@ H5P__set_filter(H5P_genplist_t *plist, H5Z_filter_t filter, unsigned int flags,
/* Check if filter is already available */
if((filter_avail = H5Z_filter_avail(filter)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't check filter availability")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't check filter availability")
/* If filter is not available, try to dynamically load it */
if(!filter_avail) {
+#ifndef H5_VMS
const H5Z_class2_t *filter_info;
if(NULL == (filter_info = (const H5Z_class2_t *)H5PL_load(H5PL_TYPE_FILTER, (int)filter)))
HGOTO_ERROR(H5E_PLINE, H5E_CANTLOAD, FAIL, "failed to load dynamically loaded plugin")
if(H5Z_register(filter_info) < 0)
- HGOTO_ERROR(H5E_PLINE, H5E_CANTINIT, FAIL, "unable to register filter")
+ HGOTO_ERROR(H5E_PLINE, H5E_CANTINIT, FAIL, "unable to register dynamic filter")
+#else /*H5_VMS*/
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "filter is NOT registered")
+#endif /*H5_VMS*/
} /* end if */
/* Get the pipeline property to append to */