mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
www/libecap: Fix build with Clang 13+
This commit is contained in:
parent
5fc8874c44
commit
21b89b758b
@ -1,11 +1,13 @@
|
||||
--- 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 <libecap/common/libecap.h>
|
||||
+#if defined(_LIBCPP_VERSION)
|
||||
+#include <memory>
|
||||
+#elif defined(__clang_major__) && __clang_major__ >= 13
|
||||
+#include <memory>
|
||||
+#else
|
||||
#include <tr1/memory>
|
||||
+#endif
|
||||
@ -17,6 +19,9 @@
|
||||
+#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;
|
||||
|
Loading…
Reference in New Issue
Block a user