config.hpp 855 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef BOOST_HASH2_DETAIL_CONFIG_HPP_INCLUDED
  2. #define BOOST_HASH2_DETAIL_CONFIG_HPP_INCLUDED
  3. // Copyright 2024 Peter Dimov
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // https://www.boost.org/LICENSE_1_0.txt
  6. #include <boost/config.hpp>
  7. // __builtin_is_constant_evaluated
  8. #if defined(BOOST_MSVC) && BOOST_MSVC >= 1925
  9. # define BOOST_HASH2_HAS_BUILTIN_IS_CONSTANT_EVALUATED
  10. #endif
  11. #if defined(__has_builtin)
  12. # if __has_builtin(__builtin_is_constant_evaluated)
  13. # define BOOST_HASH2_HAS_BUILTIN_IS_CONSTANT_EVALUATED
  14. # endif
  15. #endif
  16. // __builtin_bit_cast
  17. #if defined(BOOST_MSVC) && BOOST_MSVC >= 1927
  18. # define BOOST_HASH2_HAS_BUILTIN_BIT_CAST
  19. #endif
  20. #if defined(__has_builtin)
  21. # if __has_builtin(__builtin_bit_cast)
  22. # define BOOST_HASH2_HAS_BUILTIN_BIT_CAST
  23. # endif
  24. #endif
  25. #endif // #ifndef BOOST_HASH2_DETAIL_CONFIG_HPP_INCLUDED