From aed37c30a07098fce0dd06b7fee60cc646fbc303 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 21 Oct 2019 21:17:48 +0200
Subject: [PATCH] Fixed compilation error.

---
 tests/testComovingCooling.c | 11 ++++++++---
 tests/testCooling.c         | 11 ++++++++---
 2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/tests/testComovingCooling.c b/tests/testComovingCooling.c
index 0b3b405c56..b2c7de115a 100644
--- a/tests/testComovingCooling.c
+++ b/tests/testComovingCooling.c
@@ -19,11 +19,10 @@
 #include "../config.h"
 
 /* Local headers. */
-#include "../src/cooling/EAGLE/cooling_rates.h"
-#include "../src/cooling/EAGLE/cooling_tables.h"
-#include "../src/cooling/EAGLE/interpolate.h"
 #include "swift.h"
 
+#if defined(CHEMISTRY_EAGLE) && defined(COOLING_EAGLE)
+
 /*
  * @brief Assign particle density and entropy corresponding to the
  * hydrogen number density and internal energy specified.
@@ -235,3 +234,9 @@ int main(int argc, char **argv) {
   free(params);
   return 0;
 }
+
+#else
+
+int main(int argc, char **argv) { return 0; }
+
+#endif
diff --git a/tests/testCooling.c b/tests/testCooling.c
index d0efcb9f3b..9cf38fc23f 100644
--- a/tests/testCooling.c
+++ b/tests/testCooling.c
@@ -19,11 +19,10 @@
 #include "../config.h"
 
 /* Local headers. */
-#include "../src/cooling/EAGLE/cooling_rates.h"
-#include "../src/cooling/EAGLE/cooling_tables.h"
-#include "../src/cooling/EAGLE/interpolate.h"
 #include "swift.h"
 
+#if defined(CHEMISTRY_EAGLE) && defined(COOLING_EAGLE)
+
 /*
  * @brief Assign particle density and entropy corresponding to the
  * hydrogen number density and internal energy specified.
@@ -231,3 +230,9 @@ int main(int argc, char **argv) {
   free(params);
   return 0;
 }
+
+#else
+
+int main(int argc, char **argv) { return 0; }
+
+#endif
-- 
GitLab