diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-10-10 23:01:51 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-10-10 23:01:51 (GMT) |
commit | a1c698f422fceeadcf50e2ad456d5e43a01c8feb (patch) | |
tree | 5b21483b358f6fc1905f865f7c29f3228cc4c4a6 /src/dxfdata.h | |
parent | 6251fc326842b657feb4926c9a4fbb51f152248c (diff) |
enable build of cgalpngtest under windowsXP
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; |