summaryrefslogtreecommitdiffstats
path: root/perform/chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/chunk.c')
-rw-r--r--perform/chunk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perform/chunk.c b/perform/chunk.c
index 46fb37d..0348e6d 100644
--- a/perform/chunk.c
+++ b/perform/chunk.c
@@ -152,7 +152,11 @@ create_dataset (void)
dcpl = H5Pcreate (H5P_DATASET_CREATE);
size[0] = size[1] = CH_SIZE;
H5Pset_chunk (dcpl, 2, size);
+#ifdef H5_WANT_H5_V1_4_COMPAT
+ H5Zregister (FILTER_COUNTER, "counter", counter);
+#else /* H5_WANT_H5_V1_4_COMPAT */
H5Zregister (H5Z_COUNTER);
+#endif /* H5_WANT_H5_V1_4_COMPAT */
H5Pset_filter (dcpl, FILTER_COUNTER, 0, 0, NULL);
/* The dataset */