OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file adds defines about the platform we're currently building on. | 5 // This file adds defines about the platform we're currently building on. |
6 // Operating System: | 6 // Operating System: |
7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) | 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) |
8 // Compiler: | 8 // Compiler: |
9 // COMPILER_MSVC / COMPILER_GCC | 9 // COMPILER_MSVC / COMPILER_GCC |
10 // Processor: | 10 // Processor: |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff) | 132 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff) |
133 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to | 133 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to |
134 // compile in this mode (in particular, Chrome doesn't). This is intended for | 134 // compile in this mode (in particular, Chrome doesn't). This is intended for |
135 // other projects using base who manage their own dependencies and make sure | 135 // other projects using base who manage their own dependencies and make sure |
136 // short wchar works for them. | 136 // short wchar works for them. |
137 #define WCHAR_T_IS_UTF16 | 137 #define WCHAR_T_IS_UTF16 |
138 #else | 138 #else |
139 #error Please add support for your compiler in build/build_config.h | 139 #error Please add support for your compiler in build/build_config.h |
140 #endif | 140 #endif |
141 | 141 |
142 #if defined(__ARMEL__) && !defined(OS_IOS) | 142 #if (defined(__ARMEL__) || defined(__aarch64__)) && !defined(OS_IOS) |
143 #define WCHAR_T_IS_UNSIGNED 1 | 143 #define WCHAR_T_IS_UNSIGNED 1 |
Nico
2014/04/23 18:18:12
This looks broken. The only user of this define th
rmcilroy
2014/04/24 09:58:41
That sounds much more sensible - done.
| |
144 #elif defined(__MIPSEL__) | 144 #elif defined(__MIPSEL__) |
145 #define WCHAR_T_IS_UNSIGNED 0 | 145 #define WCHAR_T_IS_UNSIGNED 0 |
146 #endif | 146 #endif |
147 | 147 |
148 #if defined(OS_ANDROID) | 148 #if defined(OS_ANDROID) |
149 // The compiler thinks std::string::const_iterator and "const char*" are | 149 // The compiler thinks std::string::const_iterator and "const char*" are |
150 // equivalent types. | 150 // equivalent types. |
151 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 151 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
152 // The compiler thinks base::string16::const_iterator and "char16*" are | 152 // The compiler thinks base::string16::const_iterator and "char16*" are |
153 // equivalent types. | 153 // equivalent types. |
154 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 154 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
155 #endif | 155 #endif |
156 | 156 |
157 #endif // BUILD_BUILD_CONFIG_H_ | 157 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |