From 8324e28e3dd29c970b7922bab7e6b642f5b5032f Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 5 Nov 2018 14:46:04 +0100
Subject: [PATCH] Style improvements in some of the examples' includes. Include
 the local configuration first.

---
 src/clocks.h                | 7 ++++++-
 tests/testInteractions.c    | 4 ++++
 tests/testMatrixInversion.c | 4 ++++
 tests/testReading.c         | 3 +++
 tests/testRiemannTRRS.c     | 4 ++++
 tests/testVoronoi2D.c       | 3 +++
 tests/testVoronoi3D.c       | 4 ++++
 7 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/src/clocks.h b/src/clocks.h
index 3800938e3e..ce08167bd5 100644
--- a/src/clocks.h
+++ b/src/clocks.h
@@ -19,8 +19,13 @@
 #ifndef SWIFT_CLOCKS_H
 #define SWIFT_CLOCKS_H
 
+/* Config parameters. */
+#include "../config.h"
+
+/* System includes. */
 #include <sys/times.h>
-#include <time.h>
+
+/* Local includes */
 #include "cycle.h"
 
 /* Struct to record a time for the clocks functions. */
diff --git a/tests/testInteractions.c b/tests/testInteractions.c
index cdaa03733e..19eb44fa79 100644
--- a/tests/testInteractions.c
+++ b/tests/testInteractions.c
@@ -16,12 +16,16 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  ******************************************************************************/
+#include "../config.h"
 
+/* Some standard headers. */
 #include <fenv.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+
+/* Local includes */
 #include "swift.h"
 
 /* Other schemes need to be added here if they are not vectorized, otherwise
diff --git a/tests/testMatrixInversion.c b/tests/testMatrixInversion.c
index a15e0dab7e..8cd0f4e272 100644
--- a/tests/testMatrixInversion.c
+++ b/tests/testMatrixInversion.c
@@ -16,9 +16,13 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  ******************************************************************************/
+#include "../config.h"
 
+/* Some standard headers. */
 #include <stdlib.h>
 #include <string.h>
+
+/* Local headers */
 #include "const.h"
 #include "dimension.h"
 #include "error.h"
diff --git a/tests/testReading.c b/tests/testReading.c
index 6e21ec7ff0..d7d3fcbdae 100644
--- a/tests/testReading.c
+++ b/tests/testReading.c
@@ -17,6 +17,9 @@
  *
  ******************************************************************************/
 
+/* Some standard headers. */
+#include "../config.h"
+
 /* Some standard headers. */
 #include <stdlib.h>
 
diff --git a/tests/testRiemannTRRS.c b/tests/testRiemannTRRS.c
index 2c7098367a..e975230c61 100644
--- a/tests/testRiemannTRRS.c
+++ b/tests/testRiemannTRRS.c
@@ -16,8 +16,12 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  ******************************************************************************/
+#include "../config.h"
 
+/* Local headers. */
 #include <string.h>
+
+/* Local includes */
 #include "error.h"
 #include "riemann/riemann_trrs.h"
 #include "tools.h"
diff --git a/tests/testVoronoi2D.c b/tests/testVoronoi2D.c
index 60a7162490..5057278efa 100644
--- a/tests/testVoronoi2D.c
+++ b/tests/testVoronoi2D.c
@@ -16,6 +16,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  ******************************************************************************/
+#include "../config.h"
+
+/* Local headers. */
 #include "hydro/Shadowswift/voronoi2d_algorithm.h"
 #include "tools.h"
 
diff --git a/tests/testVoronoi3D.c b/tests/testVoronoi3D.c
index db5c33aa6e..5e0288fa9b 100644
--- a/tests/testVoronoi3D.c
+++ b/tests/testVoronoi3D.c
@@ -16,8 +16,12 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  ******************************************************************************/
+#include "../config.h"
 
+/* Some standard headers. */
 #include <stdlib.h>
+
+/* Local headers. */
 #include "error.h"
 #include "hydro/Shadowswift/voronoi3d_algorithm.h"
 #include "part.h"
-- 
GitLab