From f5566e31b40947d9743457445f75deba848d87af Mon Sep 17 00:00:00 2001
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
Date: Fri, 26 Apr 2019 17:21:03 +0200
Subject: [PATCH] Don't use __has_include macro if it's not defined

---
 src/core/DataTypes.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/core/DataTypes.h b/src/core/DataTypes.h
index fb7d16af2..83d256c82 100644
--- a/src/core/DataTypes.h
+++ b/src/core/DataTypes.h
@@ -30,10 +30,12 @@
 #include <cmath>
 #include <limits>
 
-#if (defined( __has_include ) && __has_include(<cxxabi.h>)) || defined( __GLIBCXX__ )
+#if defined( __has_include ) || defined( __GLIBCXX__ )
+#if __has_include(<cxxabi.h>) || defined( __GLIBCXX__ )
 #define HAVE_CXXABI_H
 #include <cxxabi.h>
 #endif
+#endif
 
 
 namespace walberla {
-- 
GitLab