From 182a06055feb06dd4cdf56654e007c6e61dd3496 Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 13 Feb 2019 20:19:30 +0100 Subject: Fix 3rdparty/asio to compile with libc++ 9.0. (nw) --- 3rdparty/asio/include/asio/detail/config.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/3rdparty/asio/include/asio/detail/config.hpp b/3rdparty/asio/include/asio/detail/config.hpp index 7bd6a94cf2c..017e6545f28 100644 --- a/3rdparty/asio/include/asio/detail/config.hpp +++ b/3rdparty/asio/include/asio/detail/config.hpp @@ -708,7 +708,12 @@ # if !defined(ASIO_DISABLE_STD_STRING_VIEW) # if defined(__clang__) # if (__cplusplus >= 201103) -# if __has_include() +# ifdef _LIBCPP_VERSION +# if _LIBCPP_VERSION >= 9000 +# define ASIO_HAS_STD_STRING_VIEW 1 +# endif +# endif +# if !defined(ASIO_HAS_STD_STRING_VIEW) && __has_include() # define ASIO_HAS_STD_STRING_VIEW 1 # define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 # endif // __has_include() -- cgit v1.2.3-70-g09d2