From 3ef9a7db09f039d310b161681dfc924fd2630b16 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 22 Apr 2024 09:19:30 +1000 Subject: [PATCH] 3rdparty/asio: Patch config.hpp to hopefully work with strict preprocessor warnings. --- 3rdparty/asio/include/asio/detail/config.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3rdparty/asio/include/asio/detail/config.hpp b/3rdparty/asio/include/asio/detail/config.hpp index 14cf8cd78b4..cd345eac2cd 100644 --- a/3rdparty/asio/include/asio/detail/config.hpp +++ b/3rdparty/asio/include/asio/detail/config.hpp @@ -1314,17 +1314,17 @@ # if __has_include() # define ASIO_HAS_CO_AWAIT 1 # endif // __has_include() -# elif (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) +# elif (__cplusplus >= 201703) && defined(__cpp_coroutines) && (__cpp_coroutines >= 201703) # if __has_include() # define ASIO_HAS_CO_AWAIT 1 # endif // __has_include() -# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) +# endif // (__cplusplus >= 201703) && defined(__cpp_coroutines) && (__cpp_coroutines >= 201703) # else // (__clang_major__ >= 14) -# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) +# if (__cplusplus >= 201703) && defined(__cpp_coroutines) && (__cpp_coroutines >= 201703) # if __has_include() # define ASIO_HAS_CO_AWAIT 1 # endif // __has_include() -# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) +# endif // (__cplusplus >= 201703) && defined(__cpp_coroutines) && (__cpp_coroutines >= 201703) # endif // (__clang_major__ >= 14) # elif defined(__GNUC__) # if (__cplusplus >= 201709) && (__cpp_impl_coroutine >= 201902)