diff --git a/asio/include/asio/basic_datagram_socket.hpp b/asio/include/asio/basic_datagram_socket.hpp index 06f70497..a451013f 100644 --- a/asio/include/asio/basic_datagram_socket.hpp +++ b/asio/include/asio/basic_datagram_socket.hpp @@ -18,12 +18,15 @@ #include "asio/detail/config.hpp" #include #include "asio/basic_socket.hpp" -#include "asio/datagram_socket_service.hpp" #include "asio/detail/handler_type_requirements.hpp" #include "asio/detail/throw_error.hpp" #include "asio/detail/type_traits.hpp" #include "asio/error.hpp" +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/datagram_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) + #include "asio/detail/push_options.hpp" namespace asio { diff --git a/asio/include/asio/basic_deadline_timer.hpp b/asio/include/asio/basic_deadline_timer.hpp index d281f904..8779bac5 100644 --- a/asio/include/asio/basic_deadline_timer.hpp +++ b/asio/include/asio/basic_deadline_timer.hpp @@ -22,16 +22,17 @@ #include #include "asio/basic_io_object.hpp" -#include "asio/deadline_timer_service.hpp" #include "asio/detail/handler_type_requirements.hpp" #include "asio/detail/throw_error.hpp" #include "asio/error.hpp" #include "asio/time_traits.hpp" -#if !defined(ASIO_ENABLE_OLD_SERVICES) +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/deadline_timer_service.hpp" +#else // defined(ASIO_ENABLE_OLD_SERVICES) # include "asio/detail/deadline_timer_service.hpp" # define ASIO_SVC_T detail::deadline_timer_service -#endif // !defined(ASIO_ENABLE_OLD_SERVICES) +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp" diff --git a/asio/include/asio/basic_raw_socket.hpp b/asio/include/asio/basic_raw_socket.hpp index a922a82f..30114939 100644 --- a/asio/include/asio/basic_raw_socket.hpp +++ b/asio/include/asio/basic_raw_socket.hpp @@ -22,7 +22,10 @@ #include "asio/detail/throw_error.hpp" #include "asio/detail/type_traits.hpp" #include "asio/error.hpp" -#include "asio/raw_socket_service.hpp" + +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/raw_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp" diff --git a/asio/include/asio/basic_seq_packet_socket.hpp b/asio/include/asio/basic_seq_packet_socket.hpp index ae896565..ca992ece 100644 --- a/asio/include/asio/basic_seq_packet_socket.hpp +++ b/asio/include/asio/basic_seq_packet_socket.hpp @@ -21,7 +21,10 @@ #include "asio/detail/handler_type_requirements.hpp" #include "asio/detail/throw_error.hpp" #include "asio/error.hpp" -#include "asio/seq_packet_socket_service.hpp" + +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/seq_packet_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp" diff --git a/asio/include/asio/basic_socket_acceptor.hpp b/asio/include/asio/basic_socket_acceptor.hpp index 30b560c8..9554bb9e 100644 --- a/asio/include/asio/basic_socket_acceptor.hpp +++ b/asio/include/asio/basic_socket_acceptor.hpp @@ -22,14 +22,15 @@ #include "asio/detail/throw_error.hpp" #include "asio/detail/type_traits.hpp" #include "asio/error.hpp" -#include "asio/socket_acceptor_service.hpp" #include "asio/socket_base.hpp" #if defined(ASIO_HAS_MOVE) # include #endif // defined(ASIO_HAS_MOVE) -#if !defined(ASIO_ENABLE_OLD_SERVICES) +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/socket_acceptor_service.hpp" +#else // defined(ASIO_ENABLE_OLD_SERVICES) # if defined(ASIO_WINDOWS_RUNTIME) # include "asio/detail/null_socket_service.hpp" # define ASIO_SVC_T detail::null_socket_service @@ -40,7 +41,7 @@ # include "asio/detail/reactive_socket_service.hpp" # define ASIO_SVC_T detail::reactive_socket_service # endif -#endif // !defined(ASIO_ENABLE_OLD_SERVICES) +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp" diff --git a/asio/include/asio/basic_socket_iostream.hpp b/asio/include/asio/basic_socket_iostream.hpp index 53d5bb24..1ada7ce0 100644 --- a/asio/include/asio/basic_socket_iostream.hpp +++ b/asio/include/asio/basic_socket_iostream.hpp @@ -22,7 +22,10 @@ #include #include #include "asio/basic_socket_streambuf.hpp" -#include "asio/stream_socket_service.hpp" + +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/stream_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #if !defined(ASIO_HAS_VARIADIC_TEMPLATES) diff --git a/asio/include/asio/basic_socket_streambuf.hpp b/asio/include/asio/basic_socket_streambuf.hpp index 366ebe73..01821ec9 100644 --- a/asio/include/asio/basic_socket_streambuf.hpp +++ b/asio/include/asio/basic_socket_streambuf.hpp @@ -22,13 +22,19 @@ #include #include "asio/basic_socket.hpp" #include "asio/detail/array.hpp" -#include "asio/detail/deadline_timer_service.hpp" #include "asio/detail/throw_error.hpp" #include "asio/io_context.hpp" -#include "asio/stream_socket_service.hpp" + +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/stream_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #if defined(ASIO_HAS_BOOST_DATE_TIME) -# include "asio/deadline_timer_service.hpp" +# if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/deadline_timer_service.hpp" +# else // defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/detail/deadline_timer_service.hpp" +# endif // defined(ASIO_ENABLE_OLD_SERVICES) #else # include "asio/steady_timer.hpp" #endif diff --git a/asio/include/asio/basic_stream_socket.hpp b/asio/include/asio/basic_stream_socket.hpp index 54836579..31e68509 100644 --- a/asio/include/asio/basic_stream_socket.hpp +++ b/asio/include/asio/basic_stream_socket.hpp @@ -22,7 +22,10 @@ #include "asio/detail/handler_type_requirements.hpp" #include "asio/detail/throw_error.hpp" #include "asio/error.hpp" -#include "asio/stream_socket_service.hpp" + +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/stream_socket_service.hpp" +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp" diff --git a/asio/include/asio/basic_waitable_timer.hpp b/asio/include/asio/basic_waitable_timer.hpp index 68e62a34..6e9a3e18 100644 --- a/asio/include/asio/basic_waitable_timer.hpp +++ b/asio/include/asio/basic_waitable_timer.hpp @@ -22,19 +22,20 @@ #include "asio/detail/throw_error.hpp" #include "asio/error.hpp" #include "asio/wait_traits.hpp" -#include "asio/waitable_timer_service.hpp" #if defined(ASIO_HAS_MOVE) # include #endif // defined(ASIO_HAS_MOVE) -#if !defined(ASIO_ENABLE_OLD_SERVICES) +#if defined(ASIO_ENABLE_OLD_SERVICES) +# include "asio/waitable_timer_service.hpp" +#else // defined(ASIO_ENABLE_OLD_SERVICES) # include "asio/detail/chrono_time_traits.hpp" # include "asio/detail/deadline_timer_service.hpp" # define ASIO_SVC_T \ detail::deadline_timer_service< \ detail::chrono_time_traits > -#endif // !defined(ASIO_ENABLE_OLD_SERVICES) +#endif // defined(ASIO_ENABLE_OLD_SERVICES) #include "asio/detail/push_options.hpp"