From 900cce284007a07caabe5e995a6dd9e15314340a Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 14 Aug 2001 17:41:11 -0500 Subject: [svn-r4359] Purpose: bug fix Description: Could not get to compile as parallel program in parallel mode. That was because I did not include hdf5.h before testing for the H5_HAVE_PARALLEL macro. (DUMB!) Solution: #include hdf5.h first. Platforms tested: eirene (parallel) --- perform/mpi-perf.c | 1 + perform/perf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/perform/mpi-perf.c b/perform/mpi-perf.c index 09a134b..bf7c5be 100644 --- a/perform/mpi-perf.c +++ b/perform/mpi-perf.c @@ -7,6 +7,7 @@ * and was called mpi-io-test.c */ +#include "hdf5.h" #ifdef H5_HAVE_PARALLEL /* mpi-perf.c * diff --git a/perform/perf.c b/perform/perf.c index 8ba0e88..a4a0678 100644 --- a/perform/perf.c +++ b/perform/perf.c @@ -7,6 +7,7 @@ * So if it doesn't work on some platform, that might be why. */ +#include "hdf5.h" #ifdef H5_HAVE_PARALLEL #include #include @@ -21,7 +22,6 @@ #endif -#include "hdf5.h" /* Macro definitions */ /* Verify: * if val is false (0), print mesg and if fatal is true (non-zero), die. -- cgit v0.12