aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_product.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-20 17:51:17 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-20 17:51:17 +0200
commitde70671937827dd61a63d2432e0bea4ca7b00300 (patch)
tree64117e4235b560410ffb30faf69842dae56475e9 /test/sparse_product.cpp
parent56a750b6ccf52e59874e991a2373265fc3ab4b8e (diff)
Oopps, EIGEN_COMP_MSVC is not available before including Eigen.
Diffstat (limited to 'test/sparse_product.cpp')
-rw-r--r--test/sparse_product.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sparse_product.cpp b/test/sparse_product.cpp
index a44d39d1d..db1b0e833 100644
--- a/test/sparse_product.cpp
+++ b/test/sparse_product.cpp
@@ -7,7 +7,7 @@
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#if EIGEN_COMP_MSVC==1800
+#if defined(_MSC_VER) && (_MSC_VER==1800)
// This unit test takes forever to compile in Release mode with MSVC 2013,
// multiple hours. So let's switch off optimization for this one.
#pragma optimize("",off)