OLD | NEW |
---|---|
1 // Copyright 2009 The RE2 Authors. All Rights Reserved. | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RE2_UTIL_UTIL_H__ | 5 #ifndef RE2_UTIL_UTIL_H__ |
6 #define RE2_UTIL_UTIL_H__ | 6 #define RE2_UTIL_UTIL_H__ |
7 | 7 |
8 // C | 8 // C |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 28 matching lines...) Expand all Loading... | |
39 using std::string; | 39 using std::string; |
40 using std::min; | 40 using std::min; |
41 using std::max; | 41 using std::max; |
42 using std::ostream; | 42 using std::ostream; |
43 using std::map; | 43 using std::map; |
44 using std::stack; | 44 using std::stack; |
45 using std::sort; | 45 using std::sort; |
46 using std::swap; | 46 using std::swap; |
47 using std::make_pair; | 47 using std::make_pair; |
48 | 48 |
49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && \ | 49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && \ |
Nico
2014/11/07 00:56:39
I think the OS_ANDROID change here can be undone t
Fabrice (no longer in Chrome)
2014/11/12 11:52:29
Done.
| |
50 !defined(_LIBCPP_ABI_VERSION) | 50 !defined(_LIBCPP_ABI_VERSION) |
Fabrice (no longer in Chrome)
2014/11/05 12:33:06
So, essentially Mac, right?
| |
51 | 51 |
52 #include <tr1/unordered_set> | 52 #include <tr1/unordered_set> |
53 using std::tr1::unordered_set; | 53 using std::tr1::unordered_set; |
54 | 54 |
55 #else | 55 #else |
56 | 56 |
57 #include <unordered_set> | 57 #include <unordered_set> |
58 #if defined(WIN32) || defined(OS_ANDROID) | 58 #if defined(WIN32) |
Fabrice (no longer in Chrome)
2014/11/05 12:33:06
I'm not sure that is still necessary, we've been u
Nico
2014/11/05 17:30:10
Yes, but re2 is a third_party project and re2 can'
| |
59 using std::tr1::unordered_set; | 59 using std::tr1::unordered_set; |
60 #else | 60 #else |
61 using std::unordered_set; | 61 using std::unordered_set; |
62 #endif | 62 #endif |
63 | 63 |
64 #endif | 64 #endif |
65 | 65 |
66 namespace re2 { | 66 namespace re2 { |
67 | 67 |
68 typedef int8_t int8; | 68 typedef int8_t int8; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 } | 142 } |
143 | 143 |
144 } // namespace re2 | 144 } // namespace re2 |
145 | 145 |
146 #include "util/arena.h" | 146 #include "util/arena.h" |
147 #include "util/logging.h" | 147 #include "util/logging.h" |
148 #include "util/mutex.h" | 148 #include "util/mutex.h" |
149 #include "util/utf.h" | 149 #include "util/utf.h" |
150 | 150 |
151 #endif // RE2_UTIL_UTIL_H__ | 151 #endif // RE2_UTIL_UTIL_H__ |
OLD | NEW |