summaryrefslogtreecommitdiff
path: root/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h
blob: 459f34bda07edd24650d3a63667dc9b6b101b25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-include_openbabel_shared__ptr.h,v 1.1 2013/05/06 14:22:43 joerg Exp $

--- include/openbabel/shared_ptr.h.orig	2013-05-05 20:23:37.000000000 +0000
+++ include/openbabel/shared_ptr.h
@@ -21,10 +21,14 @@ GNU General Public License for more deta
   #define shared_ptr boost::shared_ptr
 #else
   #include <memory>
-  #if __GNUC__ == 4  //&& __GNUC_MINOR__ < 3  removed at the suggestion of Konstantin Tokarev
-    #include <tr1/memory>
+  #if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+    using std::shared_ptr;
+  #else
+    #if __GNUC__ == 4  //&& __GNUC_MINOR__ < 3  removed at the suggestion of Konstantin Tokarev
+      #include <tr1/memory>
+    #endif
+    using std::tr1::shared_ptr;
   #endif
-  using std::tr1::shared_ptr;
 #endif
 
 #endif // OB_SHARED_PTR_H