diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-04-24 11:26:51 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-04-24 11:26:51 +0200 |
commit | de18cd413d27eca1fea9818349543e390f577cc1 (patch) | |
tree | af1802c56bbeaf126335e915f67b3427cc7ac4c3 /Eigen/src/Core/util/Macros.h | |
parent | 1681a665d9bae18c2c907c7bc69f2f71a128918d (diff) |
Disable posix_memalign on Solaris and SunOS, and allows to by-pass built-in posix_memalign detection rules.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 |