| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 using std::make_pair; | 47 using std::make_pair; |
| 48 | 48 |
| 49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(_LIBCPP_ABI_VERSION) &&
!defined(OS_ANDROID) | 49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(_LIBCPP_ABI_VERSION) &&
!defined(OS_ANDROID) |
| 50 | 50 |
| 51 #include <tr1/unordered_set> | 51 #include <tr1/unordered_set> |
| 52 using std::tr1::unordered_set; | 52 using std::tr1::unordered_set; |
| 53 | 53 |
| 54 #else | 54 #else |
| 55 | 55 |
| 56 #include <unordered_set> | 56 #include <unordered_set> |
| 57 #if defined(WIN32) || defined(OS_ANDROID) | 57 #if defined(WIN32) || (defined(OS_ANDROID) && !defined(_LIBCPP_ABI_VERSION)) |
| 58 using std::tr1::unordered_set; | 58 using std::tr1::unordered_set; |
| 59 #else | 59 #else |
| 60 using std::unordered_set; | 60 using std::unordered_set; |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 namespace re2 { | 65 namespace re2 { |
| 66 | 66 |
| 67 typedef int8_t int8; | 67 typedef int8_t int8; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace re2 | 143 } // namespace re2 |
| 144 | 144 |
| 145 #include "util/arena.h" | 145 #include "util/arena.h" |
| 146 #include "util/logging.h" | 146 #include "util/logging.h" |
| 147 #include "util/mutex.h" | 147 #include "util/mutex.h" |
| 148 #include "util/utf.h" | 148 #include "util/utf.h" |
| 149 | 149 |
| 150 #endif // RE2_UTIL_UTIL_H__ | 150 #endif // RE2_UTIL_UTIL_H__ |
| OLD | NEW |