tls.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_LEAF_CONFIG_TLS_HPP_INCLUDED
  2. #define BOOST_LEAF_CONFIG_TLS_HPP_INCLUDED
  3. // Copyright 2018-2023 Emil Dotchevski and Reverge Studios, Inc.
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #if defined(BOOST_LEAF_TLS_FREERTOS)
  7. # include <boost/leaf/config/tls_freertos.hpp>
  8. #endif
  9. #ifndef BOOST_LEAF_USE_TLS_ARRAY
  10. # ifdef BOOST_LEAF_CFG_TLS_INDEX_TYPE
  11. # warning "BOOST_LEAF_CFG_TLS_INDEX_TYPE" is ignored if BOOST_LEAF_USE_TLS_ARRAY is not defined.
  12. # endif
  13. # ifdef BOOST_LEAF_CFG_TLS_ARRAY_SIZE
  14. # warning "BOOST_LEAF_CFG_TLS_ARRAY_SIZE" is ignored if BOOST_LEAF_USE_TLS_ARRAY is not defined.
  15. # endif
  16. # ifdef BOOST_LEAF_CFG_TLS_ARRAY_START_INDEX
  17. # warning "BOOST_LEAF_CFG_TLS_ARRAY_START_INDEX" is ignored if BOOST_LEAF_USE_TLS_ARRAY is not defined.
  18. # endif
  19. #endif
  20. #if defined BOOST_LEAF_USE_TLS_ARRAY
  21. # include <boost/leaf/config/tls_array.hpp>
  22. #elif defined(BOOST_LEAF_NO_THREADS)
  23. # include <boost/leaf/config/tls_globals.hpp>
  24. #else
  25. # include <boost/leaf/config/tls_cpp11.hpp>
  26. #endif
  27. #endif