diff -ur ../openbabel-2.3.1-orig/include/openbabel/obmolecformat.h ./include/openbabel/obmolecformat.h
old
|
new
|
|
23 | 23 | #include <hash_map> |
24 | 24 | #endif |
25 | 25 | |
26 | | #if __GNUC__ == 4 && __GNUC_MINOR__ >= 1 |
| 26 | #include <ciso646> // detect std::lib |
| 27 | #ifdef _LIBCPP_VERSION |
| 28 | #include <unordered_map> |
| 29 | #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 1 |
27 | 30 | #include <tr1/unordered_map> |
28 | 31 | #elif defined(USE_BOOST) |
29 | 32 | #include <boost/tr1/unordered_map.hpp> |
diff -ur ../openbabel-2.3.1-orig/include/openbabel/shared_ptr.h ./include/openbabel/shared_ptr.h
old
|
new
|
|
22 | 22 | #else |
23 | 23 | #include <memory> |
24 | 24 | #if __GNUC__ == 4 //&& __GNUC_MINOR__ < 3 removed at the suggestion of Konstantin Tokarev |
25 | | #include <tr1/memory> |
| 25 | #ifdef _LIBCPP_VERSION |
| 26 | using std::shared_ptr; |
| 27 | #else |
| 28 | #include <tr1/memory> |
| 29 | using std::tr1::shared_ptr; |
| 30 | #endif |
26 | 31 | #endif |
27 | | using std::tr1::shared_ptr; |
28 | 32 | #endif |
29 | 33 | |
30 | 34 | #endif // OB_SHARED_PTR_H |