diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/global.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/global.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/3rdparty/asio/include/asio/detail/global.hpp b/3rdparty/asio/include/asio/detail/global.hpp index 685cf90f2cf..59de23a4884 100644 --- a/3rdparty/asio/include/asio/detail/global.hpp +++ b/3rdparty/asio/include/asio/detail/global.hpp @@ -2,7 +2,7 @@ // detail/global.hpp // ~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -23,10 +23,8 @@ # include "asio/detail/win_global.hpp" #elif defined(ASIO_HAS_PTHREADS) # include "asio/detail/posix_global.hpp" -#elif defined(ASIO_HAS_STD_CALL_ONCE) -# include "asio/detail/std_global.hpp" #else -# error Only Windows, POSIX and std::call_once are supported! +# include "asio/detail/std_global.hpp" #endif namespace asio { @@ -41,7 +39,7 @@ inline T& global() return win_global<T>(); #elif defined(ASIO_HAS_PTHREADS) return posix_global<T>(); -#elif defined(ASIO_HAS_STD_CALL_ONCE) +#else return std_global<T>(); #endif } |