diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:18:11 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:18:11 (GMT) |
commit | 5e94747c52e7ecffdec9262a98caeb5deb5970b2 (patch) | |
tree | 2df80f37a16654a4772d2e652d3de037c4e0eee4 /tools/perform/perf.c | |
parent | 1bd3635781b6ee98fe27548aa103e9c77173f846 (diff) | |
download | hdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.zip hdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.tar.gz hdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.tar.bz2 |
[svn-r29881] Add include guards.
Remove unnecessary includes.
Diffstat (limited to 'tools/perform/perf.c')
-rw-r--r-- | tools/perform/perf.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/perform/perf.c b/tools/perform/perf.c index afd13c0..7b9590c 100644 --- a/tools/perform/perf.c +++ b/tools/perform/perf.c @@ -24,15 +24,26 @@ #include "hdf5.h" #include "H5private.h" + #ifdef H5_HAVE_PARALLEL + +#ifdef H5_STDC_HEADERS +#include <errno.h> +#include <fcntl.h> #include <stdio.h> #include <stdlib.h> -#include <fcntl.h> +#include <string.h> +#endif + #ifdef H5_HAVE_UNISTD_H +#include <sys/types.h> #include <unistd.h> #endif -#include <errno.h> -#include <string.h> + +#ifdef H5_HAVE_SYS_STAT_H +#include <sys/stat.h> +#endif + #if defined(H5_TIME_WITH_SYS_TIME) # include <sys/time.h> # include <time.h> @@ -41,6 +52,7 @@ #else # include <time.h> #endif + #include <mpi.h> #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */ # include <mpio.h> |