summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-02-13 20:19:30 +0100
committer couriersud <couriersud@gmx.org>2019-02-13 22:35:19 +0100
commit182a06055feb06dd4cdf56654e007c6e61dd3496 (patch)
tree470c797d29b1b013b4dcf9a0e8cd4e2252566568 /3rdparty
parente886abcd37c0da996503db59b6a994de626e33a9 (diff)
Fix 3rdparty/asio to compile with libc++ 9.0. (nw)
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/asio/include/asio/detail/config.hpp7
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>)