summaryrefslogtreecommitdiff
path: root/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h
blob: 6d9ed3145a8307c2883d96815157c5e7399ae232 (plain)
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
27
$NetBSD: patch-include_openbabel_shared__ptr.h,v 1.2 2014/11/20 09:05:56 mef Exp $

--- include/openbabel/shared_ptr.h.orig	2011-10-13 05:24:02.000000000 +0900
+++ include/openbabel/shared_ptr.h	2014-11-20 17:51:30.000000000 +0900
@@ -21,10 +21,19 @@ 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 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
   #endif
-  using std::tr1::shared_ptr;
 #endif
 
 #endif // OB_SHARED_PTR_H