diff options
Diffstat (limited to 'src/dxfdata.h')
-rw-r--r-- | src/dxfdata.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dxfdata.h b/src/dxfdata.h index d8dc3dd..04bcdd0 100644 --- a/src/dxfdata.h +++ b/src/dxfdata.h @@ -1,10 +1,14 @@ #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> @@ -35,7 +39,11 @@ public: } }; +#ifdef _MSC_VER + std::vector<Vector2d> points; +#else std::vector<Vector2d, Eigen::aligned_allocator<Vector2d> > points; +#endif std::vector<Path> paths; std::vector<Dim> dims; |