Changeset 11752:f1633f4dc201 in orange


Ignore:
Timestamp:
11/06/13 11:37:28 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fix for MSVC compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/hclust.cpp

    r11751 r11752  
    33#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L 
    44    // C++11 support or using libc++ 
    5     #define HAVE_STD_UNORDERED_MAP 
    6 #elif _MSC_VER 
    7     // At least on supported versions of MSVC (>= 2008)  we have 
    8     // std::unordered_map 
    9     #define HAVE_STD_UNORDERED_MAP 
    10 #endif 
    11  
    12 #ifdef HAVE_STD_UNORDERED_MAP 
    135    #include <unordered_map> 
    146    #define _HCLUST_UNORDERED_MAP std::unordered_map 
     7#elif _MSC_VER 
     8    #include <unordered_map> 
     9    #define _HCLUST_UNORDERED_MAP std::tr1::unordered_map 
    1510#else 
    1611    // include and use from tr1 namespace 
Note: See TracChangeset for help on using the changeset viewer.