mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
1b5decaadb
- Add my LOCAL to MASTER_SITES - Remove DOCS option - Use = instead of += - Reformat pkg-descr - Cleanup PLIST - Take maintainership Changes: http://www.measurement-factory.com/tmp/ecap/libecap_change.log
27 lines
543 B
C++
27 lines
543 B
C++
--- src/libecap/common/memory.h.orig 2014-10-02 04:05:24 UTC
|
|
+++ src/libecap/common/memory.h
|
|
@@ -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
|
|
|