summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-10-10 23:01:51 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-10-10 23:01:51 (GMT)
commita1c698f422fceeadcf50e2ad456d5e43a01c8feb (patch)
tree5b21483b358f6fc1905f865f7c29f3228cc4c4a6 /src/linalg.h
parent6251fc326842b657feb4926c9a4fbb51f152248c (diff)
enable build of cgalpngtest under windowsXP
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linalg.h b/src/linalg.h
index 02fa17f..b1e1409 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -1,10 +1,14 @@
#ifndef LINALG_H_
#define LINALG_H_
+// workaround Eigen SIMD alignment problems
#ifndef __APPLE__
#define EIGEN_DONT_VECTORIZE 1
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT 1
#endif
+#ifdef _MSC_VER
+#define EIGEN_DONT_ALIGN
+#endif
#include <Eigen/Core>
#include <Eigen/Geometry>
contact: Jan Huwald // Impressum