diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-12-23 14:54:47 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-12-23 14:54:47 (GMT) |
commit | cbd0460b1b2c94611cb02f9d6f240b4d24ce8fe2 (patch) | |
tree | 32f2ad80e8d05c2bb5440f0459cb1bce8d8fb976 /testpar | |
parent | 443bc1200f2ef81136b1ac2822873bc06ac926bd (diff) | |
download | hdf5-cbd0460b1b2c94611cb02f9d6f240b4d24ce8fe2.zip hdf5-cbd0460b1b2c94611cb02f9d6f240b4d24ce8fe2.tar.gz hdf5-cbd0460b1b2c94611cb02f9d6f240b4d24ce8fe2.tar.bz2 |
[svn-r25921] - wrap MPI 3 usage with MPI_VERSION compile time check.
- build out unbuffered stdout/err for windows
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_shapesame.c | 6 | ||||
-rw-r--r-- | testpar/testphdf5.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/testpar/t_shapesame.c b/testpar/t_shapesame.c index f96c669..d167687 100644 --- a/testpar/t_shapesame.c +++ b/testpar/t_shapesame.c @@ -5037,9 +5037,11 @@ int main(int argc, char **argv) { int mpi_size, mpi_rank; /* mpi variables */ +#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); diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index c55e2de..c3da73f 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); |