-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathestl.h
61 lines (53 loc) · 1.94 KB
/
estl.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
SESC: Super ESCalar simulator
Copyright (C) 2004 University of California, Santa Cruz
Contributed by Jose Renau
This file is part of SESC.
SESC is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2, or (at your option) any later version.
SESC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
SESC; see the file COPYING. If not, write to the Free Software Foundation, 59
Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef ESTL_H
#define ESTL_H
// Diferent compilers have slightly different calling conventions for
// STL. This file has a cross-compiler implementation.
#ifdef __INTEL_COMPILER
#include <ext/hash_map>
#include <ext/hash_set>
#include <ext/slist>
#include <algorithm>
#define HASH_MAP stlport::hash_map
#define HASH_SET stlport::hash_set
#define HASH_MULTIMAP stlport::hash_multimap
#define HASH std::hash
#define SLIST std::slist
#elif USE_STL_PORT
/* Sun Studio or Standard compiler -library=stlport5 */
#include <hash_map>
#include <hash_set>
#include <slist>
#include <algorithm>
#define HASH_MAP std::hash_map
#define HASH_SET std::hash_set
#define HASH_MULTIMAP std::hash_multimap
#define HASH std::hash
#define SLIST std::slist
#else
/* GNU C Compiler */
#include <ext/hash_map>
#include <ext/hash_set>
#include <ext/slist>
#include <ext/algorithm>
#define HASH_MAP __gnu_cxx::hash_map
#define HASH_SET __gnu_cxx::hash_set
#define HASH_MULTIMAP __gnu_cxx::hash_multimap
#define HASH __gnu_cxx::hash
#define SLIST __gnu_cxx::slist
#endif
#endif // ESTL_H