blob: db4f9894ee89c41d18b6dc485b663ea6b810d109 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- 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
|