From 5238e03fe1b34f2e28fbf1321ee48621f0f9363c Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sun, 6 Mar 2016 21:59:40 -0800 Subject: Don't try to compile the uint128 test with compilers that don't support uint127 --- unsupported/test/cxx11_tensor_uint128.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'unsupported/test/cxx11_tensor_uint128.cpp') diff --git a/unsupported/test/cxx11_tensor_uint128.cpp b/unsupported/test/cxx11_tensor_uint128.cpp index e8ecc5bca..2cbc45716 100644 --- a/unsupported/test/cxx11_tensor_uint128.cpp +++ b/unsupported/test/cxx11_tensor_uint128.cpp @@ -11,8 +11,15 @@ #include + +#if EIGEN_COMP_MSVC +#define EIGEN_NO_INT128 +#else typedef __uint128_t uint128_t; +#endif +// Only run the test on compilers that support 128bit integers natively +#ifndef EIGEN_NO_INT128 using Eigen::internal::TensorUInt128; using Eigen::internal::static_val; @@ -134,11 +141,12 @@ void test_misc2() { } } } +#endif void test_cxx11_tensor_uint128() { -#if EIGEN_COMP_MSVC +#ifdef EIGEN_NO_INT128 // Skip the test on compilers that don't support 128bit integers natively return; #else -- cgit v1.2.3