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

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

diff --git a/src/core/DataTypes.h b/src/core/DataTypes.h
index fb7d16af2..290928709 100644
--- a/src/core/DataTypes.h
+++ b/src/core/DataTypes.h
@@ -30,9 +30,16 @@
 #include <cmath>
 #include <limits>
 
-#if (defined( __has_include ) && __has_include(<cxxabi.h>)) || defined( __GLIBCXX__ )
+#ifdef __GLIBCXX__ 
 #define HAVE_CXXABI_H
 #include <cxxabi.h>
+#else
+#ifdef __has_include
+#if __has_include(<cxxabi.h>)
+#define HAVE_CXXABI_H
+#include <cxxabi.h>
+#endif
+#endif
 #endif
 
 
-- 
GitLab