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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #error Please add support for your architecture in build/build_config.h | 89 #error Please add support for your architecture in build/build_config.h |
90 #endif | 90 #endif |
91 | 91 |
92 // Type detection for wchar_t. | 92 // Type detection for wchar_t. |
93 #if defined(OS_WIN) | 93 #if defined(OS_WIN) |
94 #define WCHAR_T_IS_UTF16 | 94 #define WCHAR_T_IS_UTF16 |
95 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 95 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
96 defined(__WCHAR_MAX__) && \ | 96 defined(__WCHAR_MAX__) && \ |
97 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 97 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
98 #define WCHAR_T_IS_UTF32 | 98 #define WCHAR_T_IS_UTF32 |
| 99 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
| 100 defined(__WCHAR_MAX__) && \ |
| 101 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff) |
| 102 #define WCHAR_T_IS_UTF16 |
99 #else | 103 #else |
100 #error Please add support for your compiler in build/build_config.h | 104 #error Please add support for your compiler in build/build_config.h |
101 #endif | 105 #endif |
102 | 106 |
103 #endif // BUILD_BUILD_CONFIG_H_ | 107 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |