diff options
Diffstat (limited to 'biology/openbabel/patches/patch-include_openbabel_shared__ptr.h')
-rw-r--r-- | biology/openbabel/patches/patch-include_openbabel_shared__ptr.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h b/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h index 459f34bda07..6d9ed3145a8 100644 --- a/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h +++ b/biology/openbabel/patches/patch-include_openbabel_shared__ptr.h @@ -1,8 +1,8 @@ -$NetBSD: patch-include_openbabel_shared__ptr.h,v 1.1 2013/05/06 14:22:43 joerg Exp $ +$NetBSD: patch-include_openbabel_shared__ptr.h,v 1.2 2014/11/20 09:05:56 mef 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 +--- 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> @@ -11,10 +11,15 @@ $NetBSD: patch-include_openbabel_shared__ptr.h,v 1.1 2013/05/06 14:22:43 joerg E + #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> ++ #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 - using std::tr1::shared_ptr; #endif |