summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorGravatarGravatar arbee <rb6502@users.noreply.github.com>2019-03-27 20:35:31 -0400
committerGravatarGravatar arbee <rb6502@users.noreply.github.com>2019-03-27 20:35:31 -0400
commit2c3395cf8b207134685c7c64b887661561319e2e (patch) (github)
tree3ab85743272120a53ba4c65b4a7634d7ef4e6f1d /3rdparty
parent542fb45cfc19df5d4335aa43719a4cdd28dcff78 (diff)
downloadmame-2c3395cf8b207134685c7c64b887661561319e2e.tar.bz2
mame-2c3395cf8b207134685c7c64b887661561319e2e.zip
Fix compiling with Xcode 10.2 on macOS (nw)
This shouldn't affect any other Clang configurations (or any older Xcodes); LMK if problems occur.
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/asio/include/asio/detail/config.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/detail/config.hpp b/3rdparty/asio/include/asio/detail/config.hpp
index 017e6545f28..2fea4387f16 100644
--- a/3rdparty/asio/include/asio/detail/config.hpp
+++ b/3rdparty/asio/include/asio/detail/config.hpp
@@ -715,7 +715,13 @@
# 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
+# if (__APPLE__)
+# if ((__clang_major__ < 10) || ((__clang_major__ == 10) && (__clang_minor__ == 0) && (__clang_patchlevel__ < 1)))
+# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
+# endif // clang < 10.0.1
+# else // for non-Xcode Clang
+# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
+# endif
# endif // __has_include(<experimental/string_view>)
# endif // (__cplusplus >= 201103)
# endif // defined(__clang__)