diff --git a/src/include/types.h b/src/include/types.h
index f6fb68ab31e7683ea18256860eb9db9a82c1631f..0ac02c192f1787e065af58b4553150c5583e3ecb 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>