bug #1363: fix mingw's ABI issue

(grafted from 5d00fdf0e861a85bd6d6038ab7736d2d70807aef
)
This commit is contained in:
Gael Guennebaud 2016-12-15 11:58:31 +01:00
parent 0bcef9557d
commit dce584d799

View File

@ -28,7 +28,7 @@ namespace internal {
#endif
#endif
#if (defined EIGEN_VECTORIZE_AVX) && EIGEN_COMP_GNUC_STRICT && (__GXX_ABI_VERSION < 1004)
#if (defined EIGEN_VECTORIZE_AVX) && (EIGEN_COMP_GNUC_STRICT || EIGEN_COMP_MINGW) && (__GXX_ABI_VERSION < 1004)
// With GCC's default ABI version, a __m128 or __m256 are the same types and therefore we cannot
// have overloads for both types without linking error.
// One solution is to increase ABI version using -fabi-version=4 (or greater).