aboutsummaryrefslogtreecommitdiff
path: root/blas/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'blas/common.h')
-rw-r--r--blas/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/blas/common.h b/blas/common.h
index 61d8344d9..a9b697842 100644
--- a/blas/common.h
+++ b/blas/common.h
@@ -10,6 +10,14 @@
#ifndef EIGEN_BLAS_COMMON_H
#define EIGEN_BLAS_COMMON_H
+#ifdef __GNUC__
+# if __GNUC__<5
+// GCC < 5.0 does not like the global Scalar typedef
+// we just keep shadow-warnings disabled permanently
+# define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
+# endif
+#endif
+
#include "../Eigen/Core"
#include "../Eigen/Jacobi"
@@ -158,6 +166,10 @@ T* copy_back(T* x_cpy, T* x, int n, int incx)
return x_cpy;
}
-#define EIGEN_BLAS_FUNC(X) EIGEN_CAT(SCALAR_SUFFIX,X##_)
+#ifndef EIGEN_BLAS_FUNC_SUFFIX
+#define EIGEN_BLAS_FUNC_SUFFIX _
+#endif
+
+#define EIGEN_BLAS_FUNC(X) EIGEN_CAT(SCALAR_SUFFIX, EIGEN_CAT(X, EIGEN_BLAS_FUNC_SUFFIX))
#endif // EIGEN_BLAS_COMMON_H