diff --git a/www/libecap/files/patch-src-libecap-common-memory.h b/www/libecap/files/patch-src-libecap-common-memory.h index db4f9894ee89..74c88a184087 100644 --- a/www/libecap/files/patch-src-libecap-common-memory.h +++ b/www/libecap/files/patch-src-libecap-common-memory.h @@ -1,26 +1,31 @@ --- src/libecap/common/memory.h.orig 2014-10-02 04:05:24 UTC +++ src/libecap/common/memory.h -@@ -4,14 +4,23 @@ +@@ -4,14 +4,28 @@ #define LIBECAP__COMMON_MEMORY_H #include +#if defined(_LIBCPP_VERSION) +#include ++#elif defined(__clang_major__) && __clang_major__ >= 13 ++#include +#else #include +#endif // TODO: add support for boost pointers if std::tr1 is not available namespace libecap { +#if defined(_LIBCPP_VERSION) +using std::weak_ptr; +using std::shared_ptr; ++#elif defined(__clang_major__) && __clang_major__ >= 13 ++using std::weak_ptr; ++using std::shared_ptr; +#else using std::tr1::weak_ptr; using std::tr1::shared_ptr; +#endif } // namespace libecap