diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-09-24 19:26:50 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-09-24 19:26:50 (GMT) |
commit | 7e79a8d71e6a579710e0fc2c677dfc32336d058f (patch) | |
tree | d9b4f93046b8c2930fd35b3ec75953eccf1c1a47 /perform/overhead.c | |
parent | 52f3545bde417a7eaeb996bfc97b58ab32075c73 (diff) | |
download | hdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.zip hdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.tar.gz hdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.tar.bz2 |
[svn-r7507] *** empty log message ***
Diffstat (limited to 'perform/overhead.c')
-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; |