diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-01-08 19:00:15 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-01-08 19:00:15 (GMT) |
commit | d48b803747d4ad97b9f8becccc070d3827f48606 (patch) | |
tree | 9bec2195ac4396a9e4a363f33dbad0061da5b0ed /testpar/testphdf5.c | |
parent | 5f292cf4f414529024c5202fe3f95008c262baa3 (diff) | |
download | hdf5-d48b803747d4ad97b9f8becccc070d3827f48606.zip hdf5-d48b803747d4ad97b9f8becccc070d3827f48606.tar.gz hdf5-d48b803747d4ad97b9f8becccc070d3827f48606.tar.bz2 |
[svn-r25965] - build out unbuffered stdout/err for windows
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r-- | testpar/testphdf5.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index 932e632..7992e80 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -307,9 +307,11 @@ int main(int argc, char **argv) H5Ptest_param_t io_mode_confusion_params; H5Ptest_param_t rr_obj_flush_confusion_params; +#ifndef H5_HAVE_WIN32_API /* Un-buffer the stdout and stderr */ - setbuf(stderr, NULL); - setbuf(stdout, NULL); + HDsetbuf(stderr, NULL); + HDsetbuf(stdout, NULL); +#endif MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &mpi_size); |