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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #define ARCH_CPU_32_BITS 1 | 95 #define ARCH_CPU_32_BITS 1 |
96 #define ARCH_CPU_LITTLE_ENDIAN 1 | 96 #define ARCH_CPU_LITTLE_ENDIAN 1 |
97 #elif defined(__ARMEL__) | 97 #elif defined(__ARMEL__) |
98 #define ARCH_CPU_ARM_FAMILY 1 | 98 #define ARCH_CPU_ARM_FAMILY 1 |
99 #define ARCH_CPU_ARMEL 1 | 99 #define ARCH_CPU_ARMEL 1 |
100 #define ARCH_CPU_32_BITS 1 | 100 #define ARCH_CPU_32_BITS 1 |
101 #define ARCH_CPU_LITTLE_ENDIAN 1 | 101 #define ARCH_CPU_LITTLE_ENDIAN 1 |
102 #define WCHAR_T_IS_UNSIGNED 1 | 102 #define WCHAR_T_IS_UNSIGNED 1 |
103 #elif defined(__pnacl__) | 103 #elif defined(__pnacl__) |
104 #define ARCH_CPU_32_BITS 1 | 104 #define ARCH_CPU_32_BITS 1 |
| 105 #elif defined(__MIPSEL__) |
| 106 #define ARCH_CPU_MIPS_FAMILY 1 |
| 107 #define ARCH_CPU_MIPSEL 1 |
| 108 #define ARCH_CPU_32_BITS 1 |
| 109 #define ARCH_CPU_LITTLE_ENDIAN 1 |
| 110 #define WCHAR_T_IS_UNSIGNED 0 |
105 #else | 111 #else |
106 #error Please add support for your architecture in build/build_config.h | 112 #error Please add support for your architecture in build/build_config.h |
107 #endif | 113 #endif |
108 | 114 |
109 // Type detection for wchar_t. | 115 // Type detection for wchar_t. |
110 #if defined(OS_WIN) | 116 #if defined(OS_WIN) |
111 #define WCHAR_T_IS_UTF16 | 117 #define WCHAR_T_IS_UTF16 |
112 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 118 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
113 defined(__WCHAR_MAX__) && \ | 119 defined(__WCHAR_MAX__) && \ |
114 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 120 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
(...skipping 19 matching lines...) Expand all Loading... |
134 #if defined(OS_ANDROID) | 140 #if defined(OS_ANDROID) |
135 // The compiler thinks std::string::const_iterator and "const char*" are | 141 // The compiler thinks std::string::const_iterator and "const char*" are |
136 // equivalent types. | 142 // equivalent types. |
137 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 143 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
138 // The compiler thinks base::string16::const_iterator and "char16*" are | 144 // The compiler thinks base::string16::const_iterator and "char16*" are |
139 // equivalent types. | 145 // equivalent types. |
140 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 146 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
141 #endif | 147 #endif |
142 | 148 |
143 #endif // BUILD_BUILD_CONFIG_H_ | 149 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |