diff --git a/test/sv_construct_test.cpp b/test/sv_construct_test.cpp index 3a33fbd..3da015b 100644 --- a/test/sv_construct_test.cpp +++ b/test/sv_construct_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) diff --git a/test/sv_conversion_test.cpp b/test/sv_conversion_test.cpp index 64a7105..f9cec64 100644 --- a/test/sv_conversion_test.cpp +++ b/test/sv_conversion_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include diff --git a/test/sv_eq_test.cpp b/test/sv_eq_test.cpp index 46e6ef7..a6d3e29 100644 --- a/test/sv_eq_test.cpp +++ b/test/sv_eq_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include diff --git a/test/sv_lt_test.cpp b/test/sv_lt_test.cpp index dfa4227..4661afd 100644 --- a/test/sv_lt_test.cpp +++ b/test/sv_lt_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include