aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-04-24 11:26:51 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-04-24 11:26:51 +0200
commitde18cd413d27eca1fea9818349543e390f577cc1 (patch)
treeaf1802c56bbeaf126335e915f67b3427cc7ac4c3 /Eigen/src/Core/util/Macros.h
parent1681a665d9bae18c2c907c7bc69f2f71a128918d (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.h13
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