summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/hash_set
blob: 02279eb08fc51630e89fb045a3164d6e005ef533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===-- Support/hash_set - "Portable" wrapper around hash_set ---*- C++ -*-===//
//
// This file provides a wrapper around the mysterious <hash_set> header file
// that seems to move around between GCC releases into and out of namespaces at
// will.  #including this header will cause hash_set to be available in the
// global namespace.
//
//===----------------------------------------------------------------------===//

#ifndef SUPPORT_HASHSET_H
#define SUPPORT_HASHSET_H

#if __GNUC__==3
#include <ext/hash_set>
#ifndef HASH_NAMESPACE
#define HASH_NAMESPACE __gnu_cxx
#endif

#else

#include <hash_set>
#ifndef HASH_NAMESPACE
#define HASH_NAMESPACE std
#endif
#endif

using HASH_NAMESPACE::hash_set;
using HASH_NAMESPACE::hash;

#endif

OpenPOWER on IntegriCloud