From de18cd413d27eca1fea9818349543e390f577cc1 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 24 Apr 2015 11:26:51 +0200 Subject: Disable posix_memalign on Solaris and SunOS, and allows to by-pass built-in posix_memalign detection rules. --- Eigen/src/Core/util/Macros.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Eigen/src/Core/util/Macros.h') diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index e01f09373..aaa4dcbd4 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -283,6 +283,19 @@ #define EIGEN_OS_WIN_STRICT 0 #endif +/// \internal EIGEN_OS_SUN set to 1 if the OS is SUN +#if (defined(sun) || defined(__sun)) && !(defined(__SVR4) || defined(__svr4__)) + #define EIGEN_OS_SUN 1 +#else + #define EIGEN_OS_SUN 0 +#endif + +/// \internal EIGEN_OS_SOLARIS set to 1 if the OS is Solaris +#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) + #define EIGEN_OS_SOLARIS 1 +#else + #define EIGEN_OS_SOLARIS 0 +#endif -- cgit v1.2.3