forked from boostorg/integer
Extracted DISABLE_MP_TESTS macro definition to a common header.
This commit is contained in:
@ -34,11 +34,7 @@
|
|||||||
#include <gmpxx.h>
|
#include <gmpxx.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \
|
#include "multiprecision_config.hpp"
|
||||||
(defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \
|
|
||||||
(defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800)
|
|
||||||
#define DISABLE_MP_TESTS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef DISABLE_MP_TESTS
|
#ifndef DISABLE_MP_TESTS
|
||||||
#include <boost/multiprecision/cpp_int.hpp>
|
#include <boost/multiprecision/cpp_int.hpp>
|
||||||
|
@ -4,12 +4,8 @@
|
|||||||
* Boost Software License, Version 1.0. (See accompanying file
|
* Boost Software License, Version 1.0. (See accompanying file
|
||||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
#include <boost/config.hpp>
|
|
||||||
#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \
|
#include "multiprecision_config.hpp"
|
||||||
(defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \
|
|
||||||
(defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800)
|
|
||||||
#define DISABLE_MP_TESTS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef DISABLE_MP_TESTS
|
#ifndef DISABLE_MP_TESTS
|
||||||
#include <boost/integer/extended_euclidean.hpp>
|
#include <boost/integer/extended_euclidean.hpp>
|
||||||
|
@ -4,12 +4,8 @@
|
|||||||
* Boost Software License, Version 1.0. (See accompanying file
|
* Boost Software License, Version 1.0. (See accompanying file
|
||||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
#include <boost/config.hpp>
|
|
||||||
#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1500)) || \
|
#include "multiprecision_config.hpp"
|
||||||
(defined(__clang_major__) && (__clang_major__ == 3) && (__clang_minor__ < 2)) || \
|
|
||||||
(defined(BOOST_GCC) && defined(BOOST_GCC_CXX11) && BOOST_GCC < 40800)
|
|
||||||
#define DISABLE_MP_TESTS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef DISABLE_MP_TESTS
|
#ifndef DISABLE_MP_TESTS
|
||||||
#include <boost/integer/mod_inverse.hpp>
|
#include <boost/integer/mod_inverse.hpp>
|
||||||
|
18
test/multiprecision_config.hpp
Normal file
18
test/multiprecision_config.hpp
Normal file
@ -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 <boost/config.hpp>
|
||||||
|
|
||||||
|
#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_
|
Reference in New Issue
Block a user