| 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 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI | 8 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI |
| 9 // OS_CHROMEOS is set by the build system | 9 // OS_CHROMEOS is set by the build system |
| 10 // Compiler: | 10 // Compiler: |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 #define ARCH_CPU_MIPS_FAMILY 1 | 151 #define ARCH_CPU_MIPS_FAMILY 1 |
| 152 #define ARCH_CPU_MIPS64EL 1 | 152 #define ARCH_CPU_MIPS64EL 1 |
| 153 #define ARCH_CPU_64_BITS 1 | 153 #define ARCH_CPU_64_BITS 1 |
| 154 #define ARCH_CPU_LITTLE_ENDIAN 1 | 154 #define ARCH_CPU_LITTLE_ENDIAN 1 |
| 155 #else | 155 #else |
| 156 #define ARCH_CPU_MIPS_FAMILY 1 | 156 #define ARCH_CPU_MIPS_FAMILY 1 |
| 157 #define ARCH_CPU_MIPSEL 1 | 157 #define ARCH_CPU_MIPSEL 1 |
| 158 #define ARCH_CPU_32_BITS 1 | 158 #define ARCH_CPU_32_BITS 1 |
| 159 #define ARCH_CPU_LITTLE_ENDIAN 1 | 159 #define ARCH_CPU_LITTLE_ENDIAN 1 |
| 160 #endif | 160 #endif |
| 161 #elif defined(__MIPSEB__) |
| 162 #if defined(__LP64__) |
| 163 #define ARCH_CPU_MIPS_FAMILY 1 |
| 164 #define ARCH_CPU_MIPS64 1 |
| 165 #define ARCH_CPU_64_BITS 1 |
| 166 #define ARCH_CPU_BIG_ENDIAN 1 |
| 167 #else |
| 168 #define ARCH_CPU_MIPS_FAMILY 1 |
| 169 #define ARCH_CPU_MIPS 1 |
| 170 #define ARCH_CPU_32_BITS 1 |
| 171 #define ARCH_CPU_BIG_ENDIAN 1 |
| 172 #endif |
| 161 #else | 173 #else |
| 162 #error Please add support for your architecture in build/build_config.h | 174 #error Please add support for your architecture in build/build_config.h |
| 163 #endif | 175 #endif |
| 164 | 176 |
| 165 // Type detection for wchar_t. | 177 // Type detection for wchar_t. |
| 166 #if defined(OS_WIN) | 178 #if defined(OS_WIN) |
| 167 #define WCHAR_T_IS_UTF16 | 179 #define WCHAR_T_IS_UTF16 |
| 168 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 180 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
| 169 defined(__WCHAR_MAX__) && \ | 181 defined(__WCHAR_MAX__) && \ |
| 170 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 182 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 184 #if defined(OS_ANDROID) | 196 #if defined(OS_ANDROID) |
| 185 // The compiler thinks std::string::const_iterator and "const char*" are | 197 // The compiler thinks std::string::const_iterator and "const char*" are |
| 186 // equivalent types. | 198 // equivalent types. |
| 187 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 199 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
| 188 // The compiler thinks base::string16::const_iterator and "char16*" are | 200 // The compiler thinks base::string16::const_iterator and "char16*" are |
| 189 // equivalent types. | 201 // equivalent types. |
| 190 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 202 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
| 191 #endif | 203 #endif |
| 192 | 204 |
| 193 #endif // BUILD_BUILD_CONFIG_H_ | 205 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |