summaryrefslogtreecommitdiff
path: root/src/tr1_hash_map.h
blob: 3f31576b54eb004657fa833c9f6aa57b4be208f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once 

// detection and fallback for unordered_map in C++0x
#ifdef __cplusplus
   #ifdef __GNUC__
   #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 3
      #include <unordered_map>
      #define tr1_hash_map std::unordered_map
   #else
      #include <map>
      #define tr1_hash_map std::map
   #endif
   #else
      #include <map>
      #define tr1_hash_map std::map
   #endif
#endif