config.hpp 759 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2017-2023 zhllxt
  3. *
  4. * author : zhllxt
  5. * email : 37792738@qq.com
  6. *
  7. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. */
  10. #ifndef __ASIO2_EXTERNAL_CONFIG_HPP__
  11. #define __ASIO2_EXTERNAL_CONFIG_HPP__
  12. #include <asio2/config.hpp>
  13. #if !defined(ASIO2_HEADER_ONLY) && __has_include(<boost/config.hpp>)
  14. #include <boost/config.hpp>
  15. #ifndef ASIO2_JOIN
  16. #define ASIO2_JOIN BOOST_JOIN
  17. #endif
  18. #ifndef ASIO2_STRINGIZE
  19. #define ASIO2_STRINGIZE BOOST_STRINGIZE
  20. #endif
  21. #else
  22. #include <asio2/bho/config.hpp>
  23. #ifndef ASIO2_JOIN
  24. #define ASIO2_JOIN BHO_JOIN
  25. #endif
  26. #ifndef ASIO2_STRINGIZE
  27. #define ASIO2_STRINGIZE BHO_STRINGIZE
  28. #endif
  29. #endif
  30. #endif