diff --git a/test/common_factor_test.cpp b/test/common_factor_test.cpp index b54919e..682d55b 100644 --- a/test/common_factor_test.cpp +++ b/test/common_factor_test.cpp @@ -34,11 +34,7 @@ #include #endif -#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \ - (defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \ - (defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800) -#define DISABLE_MP_TESTS -#endif +#include "multiprecision_config.hpp" #ifndef DISABLE_MP_TESTS #include diff --git a/test/extended_euclidean_test.cpp b/test/extended_euclidean_test.cpp index 34c11f0..8299a25 100644 --- a/test/extended_euclidean_test.cpp +++ b/test/extended_euclidean_test.cpp @@ -4,12 +4,8 @@ * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include -#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \ - (defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \ - (defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800) -#define DISABLE_MP_TESTS -#endif + +#include "multiprecision_config.hpp" #ifndef DISABLE_MP_TESTS #include diff --git a/test/mod_inverse_test.cpp b/test/mod_inverse_test.cpp index 4ae17d7..ce68614 100644 --- a/test/mod_inverse_test.cpp +++ b/test/mod_inverse_test.cpp @@ -4,12 +4,8 @@ * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include -#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \ - (defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \ - (defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800) -#define DISABLE_MP_TESTS -#endif + +#include "multiprecision_config.hpp" #ifndef DISABLE_MP_TESTS #include diff --git a/test/multiprecision_config.hpp b/test/multiprecision_config.hpp new file mode 100644 index 0000000..e423111 --- /dev/null +++ b/test/multiprecision_config.hpp @@ -0,0 +1,18 @@ +// Copyright (c) 2018 Andrey Semashev +// +// Use, modification, and distribution is subject to the Boost Software +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_INTEGER_TEST_MULTIPRECISION_CONFIG_HPP_INCLUDED_ +#define BOOST_INTEGER_TEST_MULTIPRECISION_CONFIG_HPP_INCLUDED_ + +#include + +#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \ + (defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \ + (defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800) +#define DISABLE_MP_TESTS +#endif + +#endif // BOOST_INTEGER_TEST_MULTIPRECISION_CONFIG_HPP_INCLUDED_