Ticket #41335: patch-src-ops-unique.cpp.diff

File patch-src-ops-unique.cpp.diff, 694 bytes (added by gezelter@…, 11 years ago)

src/ops/unique.cpp patch

  • src/ops/unique.cpp

    old new  
    2121#include <openbabel/obconversion.h>
    2222#include <openbabel/descriptor.h>
    2323#include <openbabel/inchiformat.h>
    24 #ifdef _MSC_VER
     24#if defined(_MSC_VER) || defined(_LIBCPP_VERSION)
    2525  #include <unordered_map>
    2626#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1 && !defined(__APPLE_CC__))
    2727  #include <tr1/unordered_map>
     
    3636
    3737using namespace std;
    3838#ifndef NO_UNORDERED_MAP
    39 using std::tr1::unordered_map;
     39  #ifdef _LIBCPP_VERSION
     40    using std::unordered_map;
     41  #else
     42    using std::tr1::unordered_map;
     43  #endif
    4044#endif
    4145namespace OpenBabel
    4246{