From 5e94747c52e7ecffdec9262a98caeb5deb5970b2 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 4 May 2016 11:18:11 -0500 Subject: [svn-r29881] Add include guards. Remove unnecessary includes. --- test/h5test.c | 3 +-- tools/perform/overhead.c | 4 ---- tools/perform/perf.c | 18 +++++++++++++++--- tools/perform/pio_engine.c | 16 +++++++++++----- tools/perform/sio_engine.c | 18 ++++++++++++------ 5 files changed, 39 insertions(+), 20 deletions(-) diff --git a/test/h5test.c b/test/h5test.c index 8285043..8181ff9 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -22,8 +22,7 @@ */ #undef NDEBUG /*override -DNDEBUG */ -#include -#include + #include "h5test.h" #include "H5srcdir.h" diff --git a/tools/perform/overhead.c b/tools/perform/overhead.c index feabd3a..277f7a4 100644 --- a/tools/perform/overhead.c +++ b/tools/perform/overhead.c @@ -42,10 +42,6 @@ # include #endif -#ifdef H5_HAVE_IO_H -# include -#endif - /* Solaris Studio defines attribute, but for the attributes we need */ #if !defined(H5_HAVE_ATTRIBUTE) || defined __cplusplus || defined(__SUNPRO_C) # undef __attribute__ 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 +#include #include #include -#include +#include +#endif + #ifdef H5_HAVE_UNISTD_H +#include #include #endif -#include -#include + +#ifdef H5_HAVE_SYS_STAT_H +#include +#endif + #if defined(H5_TIME_WITH_SYS_TIME) # include # include @@ -41,6 +52,7 @@ #else # include #endif + #include #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */ # include diff --git a/tools/perform/pio_engine.c b/tools/perform/pio_engine.c index 96cfcc2..eaedcb8 100644 --- a/tools/perform/pio_engine.c +++ b/tools/perform/pio_engine.c @@ -17,17 +17,23 @@ * Author: Albert Cheng of NCSA, Oct 24, 2001. */ -#include -#include +#include "hdf5.h" + +#ifdef H5_STDC_HEADERS +#include +#include #include #include -#include +#endif + #ifdef H5_HAVE_UNISTD_H +#include #include #endif -#include -#include "hdf5.h" +#ifdef H5_HAVE_SYS_STAT_H +#include +#endif #ifdef H5_HAVE_PARALLEL diff --git a/tools/perform/sio_engine.c b/tools/perform/sio_engine.c index 5622810..505b0f7 100644 --- a/tools/perform/sio_engine.c +++ b/tools/perform/sio_engine.c @@ -16,17 +16,23 @@ * Author: Christian Chilan, April 2008 */ -#include -#include +#include "hdf5.h" + +#ifdef H5_STDC_HEADERS +#include +#include #include #include -#include +#endif + #ifdef H5_HAVE_UNISTD_H -# include +#include +#include #endif -#include -#include "hdf5.h" +#ifdef H5_HAVE_SYS_STAT_H +#include +#endif #include "sio_perf.h" -- cgit v0.12