diff options
Diffstat (limited to 'perform')
-rw-r--r-- | perform/overhead.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/perform/overhead.c b/perform/overhead.c index 72d65c7..efedb4c 100644 --- a/perform/overhead.c +++ b/perform/overhead.c @@ -165,7 +165,12 @@ static herr_t display_error_cb (hid_t estack, void UNUSED *client_data) { puts ("*FAILED*"); - H5Eprint (estack, stdout); +#ifdef H5_WANT_H5_V1_6_COMPAT + H5Eprint(stdout); +#else + H5Eprint(H5E_DEFAULT, stdout); +#endif /* H5_WANT_H5_V1_6_COMPAT */ + return 0; } @@ -370,7 +375,11 @@ main(int argc, char *argv[]) int i, j, nerrors=0; /* Default split ratios */ +#ifdef H5_WANT_H5_V1_6_COMPAT + H5Eset_auto(display_error_cb, NULL); +#else H5Eset_auto(H5E_DEFAULT, display_error_cb, NULL); +#endif /* H5_WANT_H5_V1_6_COMPAT */ if ((xfer=H5Pcreate(H5P_DATASET_XFER))<0) goto error; if (H5Pget_btree_ratios(xfer, splits+0, splits+1, splits+2)<0) { goto error; |