Fix 3rdparty/asio to compile with libc++ 9.0. (nw)

This commit is contained in:
couriersud 2019-02-13 20:19:30 +01:00
parent e886abcd37
commit 182a06055f

View File

@ -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>)