config.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Boost.Geometry
  2. // Copyright (c) 2019 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2018 Oracle and/or its affiliates.
  4. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  5. // Use, modification and distribution is subject to the Boost Software License,
  6. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_GEOMETRY_CORE_CONFIG_HPP
  9. #define BOOST_GEOMETRY_CORE_CONFIG_HPP
  10. #include <boost/config.hpp>
  11. // NOTE: workaround for VC++ 12 (aka 2013): cannot specify explicit initializer for arrays
  12. #if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) && (!defined(_MSC_VER) || (_MSC_VER >= 1900))
  13. #define BOOST_GEOMETRY_CXX11_ARRAY_UNIFIED_INITIALIZATION
  14. #endif
  15. // Defining this selects Kramer rule for segment-intersection
  16. // That is default behaviour.
  17. #define BOOST_GEOMETRY_USE_KRAMER_RULE
  18. // Rescaling is turned on, unless NO_ROBUSTNESS is defined
  19. // In future versions of Boost.Geometry, it will be turned off by default
  20. #if ! defined(BOOST_GEOMETRY_NO_ROBUSTNESS)
  21. #define BOOST_GEOMETRY_USE_RESCALING
  22. #endif
  23. #endif // BOOST_GEOMETRY_CORE_CONFIG_HPP