config.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. // Boost.Geometry
  2. // Copyright (c) 2019-2021 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2018-2024 Oracle and/or its affiliates.
  4. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  5. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  6. // Use, modification and distribution is subject to the Boost Software License,
  7. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. #ifndef BOOST_GEOMETRY_CORE_CONFIG_HPP
  10. #define BOOST_GEOMETRY_CORE_CONFIG_HPP
  11. #include <boost/config.hpp>
  12. #if defined(BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_BY_TRIANGLE) \
  13. && defined(BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_ROBUST)
  14. #error "Both BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_BY_TRIANGLE" \
  15. " and BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_ROBUST are defined." \
  16. " Only one of them should be defined."
  17. #endif
  18. // Define default side strategy, if not defined by the user.
  19. // Until Boost 1.88.0, the default strategy is side_by_triangle.
  20. #if ! defined(BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_BY_TRIANGLE) \
  21. && ! defined(BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_ROBUST)
  22. #define BOOST_GEOMETRY_DEFAULT_STRATEGY_SIDE_USE_SIDE_BY_TRIANGLE
  23. #endif
  24. #endif // BOOST_GEOMETRY_CORE_CONFIG_HPP