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) / OS_NACL | 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) / OS_NACL |
8 // Compiler: | 8 // Compiler: |
9 // COMPILER_MSVC / COMPILER_GCC | 9 // COMPILER_MSVC / COMPILER_GCC |
10 // Processor: | 10 // Processor: |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 #define ARCH_CPU_LITTLE_ENDIAN 1 | 106 #define ARCH_CPU_LITTLE_ENDIAN 1 |
107 #elif defined(__aarch64__) | 107 #elif defined(__aarch64__) |
108 #define ARCH_CPU_ARM_FAMILY 1 | 108 #define ARCH_CPU_ARM_FAMILY 1 |
109 #define ARCH_CPU_ARM64 1 | 109 #define ARCH_CPU_ARM64 1 |
110 #define ARCH_CPU_64_BITS 1 | 110 #define ARCH_CPU_64_BITS 1 |
111 #define ARCH_CPU_LITTLE_ENDIAN 1 | 111 #define ARCH_CPU_LITTLE_ENDIAN 1 |
112 #elif defined(__pnacl__) | 112 #elif defined(__pnacl__) |
113 #define ARCH_CPU_32_BITS 1 | 113 #define ARCH_CPU_32_BITS 1 |
114 #define ARCH_CPU_LITTLE_ENDIAN 1 | 114 #define ARCH_CPU_LITTLE_ENDIAN 1 |
115 #elif defined(__MIPSEL__) | 115 #elif defined(__MIPSEL__) |
| 116 #if defined(__LP64__) |
| 117 #define ARCH_CPU_MIPS64_FAMILY 1 |
| 118 #define ARCH_CPU_MIPS64EL 1 |
| 119 #define ARCH_CPU_64_BITS 1 |
| 120 #define ARCH_CPU_LITTLE_ENDIAN 1 |
| 121 #else |
116 #define ARCH_CPU_MIPS_FAMILY 1 | 122 #define ARCH_CPU_MIPS_FAMILY 1 |
117 #define ARCH_CPU_MIPSEL 1 | 123 #define ARCH_CPU_MIPSEL 1 |
118 #define ARCH_CPU_32_BITS 1 | 124 #define ARCH_CPU_32_BITS 1 |
119 #define ARCH_CPU_LITTLE_ENDIAN 1 | 125 #define ARCH_CPU_LITTLE_ENDIAN 1 |
| 126 #endif |
120 #else | 127 #else |
121 #error Please add support for your architecture in build/build_config.h | 128 #error Please add support for your architecture in build/build_config.h |
122 #endif | 129 #endif |
123 | 130 |
124 // Type detection for wchar_t. | 131 // Type detection for wchar_t. |
125 #if defined(OS_WIN) | 132 #if defined(OS_WIN) |
126 #define WCHAR_T_IS_UTF16 | 133 #define WCHAR_T_IS_UTF16 |
127 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 134 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
128 defined(__WCHAR_MAX__) && \ | 135 defined(__WCHAR_MAX__) && \ |
129 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 136 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
(...skipping 13 matching lines...) Expand all Loading... |
143 #if defined(OS_ANDROID) | 150 #if defined(OS_ANDROID) |
144 // The compiler thinks std::string::const_iterator and "const char*" are | 151 // The compiler thinks std::string::const_iterator and "const char*" are |
145 // equivalent types. | 152 // equivalent types. |
146 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 153 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
147 // The compiler thinks base::string16::const_iterator and "char16*" are | 154 // The compiler thinks base::string16::const_iterator and "char16*" are |
148 // equivalent types. | 155 // equivalent types. |
149 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 156 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
150 #endif | 157 #endif |
151 | 158 |
152 #endif // BUILD_BUILD_CONFIG_H_ | 159 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |