Ticket #41335: patch-include-openbabel-shared_ptr.h.diff

File patch-include-openbabel-shared_ptr.h.diff, 631 bytes (added by gezelter@…, 10 years ago)

include/openbabel/shared_ptr.h patch

  • include/openbabel/shared_ptr.h

    old new  
    2222#else
    2323  #include <memory>
    2424  #if __GNUC__ == 4  //&& __GNUC_MINOR__ < 3  removed at the suggestion of Konstantin Tokarev
    25     #include <tr1/memory>
     25    #ifdef _LIBCPP_VERSION
     26      #include <memory>
     27    #else
     28      #include <tr1/memory>
     29    #endif
     30  #endif
     31  #ifdef _LIBCPP_VERSION
     32    #define obsharedptr std::shared_ptr
     33  #else
     34    #define obsharedptr std::tr1::shared_ptr
    2635  #endif
    27   using std::tr1::shared_ptr;
    2836#endif
    2937
    3038#endif // OB_SHARED_PTR_H