Ticket #51785: libqalculate_unordered.patch

File libqalculate_unordered.patch, 656 bytes (added by jjstickel (Jonathan Stickel), 8 years ago)
  • libqalculate/includes.h

    a b  
    3333#include <stdint.h>
    3434
    3535
    36 #ifdef __GNUC__
     36#if defined(__GNUC__) && !defined(__clang__)
    3737#       define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
    3838#       if GCC_VERSION >= 40300
    3939#               include <tr1/unordered_map>
     
    5353#               endif
    5454#               #define unordered_map Sgi::hash_map
    5555#       endif
     56#elif defined(__clang__) && defined(_LIBCPP_VERSION)
     57#       include <unordered_map>
    5658#else      // ...  there are other compilers, right?
    5759        namespace Sgi = std;
    5860#       define unordered_map Sgi::hash_map