diff options
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/config.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
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(<experimental/string_view>) +# 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(<experimental/string_view>) # define ASIO_HAS_STD_STRING_VIEW 1 # define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 # endif // __has_include(<experimental/string_view>) |