backport 963281, fix msvc detection on win64

This commit is contained in:
Benoit Jacob 2009-05-04 12:14:37 +00:00
parent a29a390afa
commit 487edbf325

View File

@ -7,11 +7,10 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#include <malloc.h> // for _aligned_malloc -- need it regardless of whether vectorization is enabled #include <malloc.h> // for _aligned_malloc -- need it regardless of whether vectorization is enabled
#if (_MSC_VER >= 1500) // 2008 or later #if (_MSC_VER >= 1500) // 2008 or later
// Remember that usage of defined() in a #define is undefined by the standard // Remember that usage of defined() in a #define is undefined by the standard.
#ifdef _M_IX86_FP // a user reported that in 64-bit mode, MSVC doesn't care to define _M_IX86_FP.
#if _M_IX86_FP >= 2 #if (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(_M_X64)
#define EIGEN_SSE2_ON_MSVC_2008_OR_LATER #define EIGEN_SSE2_ON_MSVC_2008_OR_LATER
#endif
#endif #endif
#endif #endif
#endif #endif