summaryrefslogtreecommitdiff
path: root/src/dxfdata.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-10-15 20:48:41 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-10-15 20:48:41 (GMT)
commit17ccbace5ff035c156bc49042eab7af2c584b6aa (patch)
tree95848e2fa1de19f1aeafdc14e523e66a8a358cc8 /src/dxfdata.h
parent55f4a6150f4f8bc6fe5c3c17d3d38c73efefe9f2 (diff)
improve documentation. move EIGEN_DONT_ALIGN to makefile. win32 build fixes.
Diffstat (limited to 'src/dxfdata.h')
-rw-r--r--src/dxfdata.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/dxfdata.h b/src/dxfdata.h
index 04bcdd0..d138e7a 100644
--- a/src/dxfdata.h
+++ b/src/dxfdata.h
@@ -1,15 +1,6 @@
#ifndef DXFDATA_H_
#define DXFDATA_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/Dense>
#include <vector>
@@ -39,10 +30,10 @@ public:
}
};
-#ifdef _MSC_VER
- std::vector<Vector2d> points;
-#else
+#ifdef __APPLE__
std::vector<Vector2d, Eigen::aligned_allocator<Vector2d> > points;
+#else
+ std::vector<Vector2d> points;
#endif
std::vector<Path> paths;
std::vector<Dim> dims;
contact: Jan Huwald // Impressum