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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && \ | 49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && \ |
50 !defined(_LIBCPP_ABI_VERSION) | 50 !defined(_LIBCPP_ABI_VERSION) |
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) && !defined(_LIBCPP_ABI_VERSION)) | 58 #if defined(WIN32) || defined(OS_ANDROID) |
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 |