OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #define ARCH_CPU_X86_64 1 | 49 #define ARCH_CPU_X86_64 1 |
50 #define ARCH_CPU_64_BITS 1 | 50 #define ARCH_CPU_64_BITS 1 |
51 #elif defined(_M_IX86) || defined(__i386__) | 51 #elif defined(_M_IX86) || defined(__i386__) |
52 #define ARCH_CPU_X86_FAMILY 1 | 52 #define ARCH_CPU_X86_FAMILY 1 |
53 #define ARCH_CPU_X86 1 | 53 #define ARCH_CPU_X86 1 |
54 #define ARCH_CPU_32_BITS 1 | 54 #define ARCH_CPU_32_BITS 1 |
55 #elif defined(__ARMEL__) | 55 #elif defined(__ARMEL__) |
56 #define ARCH_CPU_ARM_FAMILY 1 | 56 #define ARCH_CPU_ARM_FAMILY 1 |
57 #define ARCH_CPU_ARMEL 1 | 57 #define ARCH_CPU_ARMEL 1 |
58 #define ARCH_CPU_32_BITS 1 | 58 #define ARCH_CPU_32_BITS 1 |
| 59 #define WCHAR_T_IS_UNSIGNED 1 |
59 #else | 60 #else |
60 #error Please add support for your architecture in build/build_config.h | 61 #error Please add support for your architecture in build/build_config.h |
61 #endif | 62 #endif |
62 | 63 |
63 // Type detection for wchar_t. | 64 // Type detection for wchar_t. |
64 #if defined(OS_WIN) | 65 #if defined(OS_WIN) |
65 #define WCHAR_T_IS_UTF16 | 66 #define WCHAR_T_IS_UTF16 |
66 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 67 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
67 defined(__WCHAR_MAX__) && \ | 68 defined(__WCHAR_MAX__) && \ |
68 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 69 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
69 #define WCHAR_T_IS_UTF32 | 70 #define WCHAR_T_IS_UTF32 |
70 #else | 71 #else |
71 #error Please add support for your compiler in build/build_config.h | 72 #error Please add support for your compiler in build/build_config.h |
72 #endif | 73 #endif |
73 | 74 |
74 #endif // BUILD_BUILD_CONFIG_H_ | 75 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |