is_standalone.hpp 841 B

123456789101112131415161718192021
  1. // Copyright Matt Borland 2021.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_NUMERIC_ODEINT_TOOLS_IS_STANDALONE_HPP
  6. #define BOOST_NUMERIC_ODEINT_TOOLS_IS_STANDALONE_HPP
  7. // If one or more of our required dependencies are missing assume we are
  8. // in standalone mode
  9. #ifdef __has_include
  10. #if !__has_include(<boost/config.hpp>) || !__has_include(<boost/assert.hpp>) || !__has_include(<boost/lexical_cast.hpp>) || \
  11. !__has_include(<boost/throw_exception.hpp>) || !__has_include(<boost/predef/other/endian.h>)
  12. # ifndef BOOST_NUMERIC_ODEINT_STANDALONE
  13. # define BOOST_NUMERIC_ODEINT_STANDALONE
  14. # endif
  15. #endif
  16. #endif
  17. #endif //BOOST_NUMERIC_ODEINT_TOOLS_IS_STANDALONE_HPP