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

File patch-include-openbabel-obmolecformat.h.diff, 863 bytes (added by gezelter@…, 11 years ago)

include/openbabel/obmolecformat.h patch

  • include/openbabel/obmolecformat.h

    old new  
    2323  #include <hash_map>
    2424#endif
    2525
    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
    2730  #include <tr1/unordered_map>
    2831#elif defined(USE_BOOST)
    2932  #include <boost/tr1/unordered_map.hpp>
     
    141144
    142145#ifdef _MSC_VER
    143146  typedef stdext::hash_map<std::string, unsigned> NameIndexType;
     147#elif defined(_LIBCPP_VERSION)
     148  typedef std::unordered_map<std::string, unsigned> NameIndexType;
    144149#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1 && !defined(__APPLE_CC__)) || defined (USE_BOOST)
    145150  typedef std::tr1::unordered_map<std::string, unsigned> NameIndexType;
    146151#else