freebsd-ports/www/libecap/files/patch-src__libecap__common__memory.h
Dmitry Marakasov a479d725c0 - Drop .la files, no dependees require them
- Add LICENSE_FILE
- Add patches to build with clang, drop USE_GCC (which breaks squid)

Approved by:	portmgr blanket
2014-09-18 15:15:39 +00:00

26 lines
591 B
C++

--- src/libecap/common/memory.h.orig 2010-05-26 01:27:41.000000000 +0400
+++ src/libecap/common/memory.h 2014-09-12 15:06:36.000000000 +0400
@@ -4,14 +4,23 @@
#define LIBECAP__COMMON_MEMORY_H
#include <libecap/common/libecap.h>
+#if defined(_LIBCPP_VERSION)
+#include <memory>
+#else
#include <tr1/memory>
+#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;
+#else
using std::tr1::weak_ptr;
using std::tr1::shared_ptr;
+#endif
} // namespace libecap