From 50333841b7e064dda1648fddbeca3b8de5ba6233 Mon Sep 17 00:00:00 2001
From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it>
Date: Fri, 17 May 2024 10:14:21 +0200
Subject: [PATCH] streamline preprocessor checks for type definitions

---
 src/include/types.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/include/types.h b/src/include/types.h
index f6fb68ab..0ac02c19 100644
--- a/src/include/types.h
+++ b/src/include/types.h
@@ -25,7 +25,6 @@
 
 typedef __complex__ double dcomplex;
 
-#ifdef USE_LAPACK
 #ifdef USE_MKL
 #ifdef USE_ILP64
 #ifndef MKL_INT 
@@ -35,7 +34,11 @@ typedef __complex__ double dcomplex;
 #ifndef MKL_INT 
 #define MKL_INT int32_t
 #endif // MKL_INT
-#endif
+#endif // USE_ILP64
+#endif // USE_MKL
+
+#ifdef USE_LAPACK
+#ifdef USE_MKL
 #include <mkl_lapacke.h>
 #else
 #include <lapacke.h>
-- 
GitLab