Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2026)

Side by Side Diff: build/build_config.h

Issue 248843004: Remove WCHAR_T_IS_UNSIGNED definition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WCHAR_T_IS_UNSIGNED Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/strings/string_util_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff) 132 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff)
133 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to 133 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to
134 // compile in this mode (in particular, Chrome doesn't). This is intended for 134 // compile in this mode (in particular, Chrome doesn't). This is intended for
135 // other projects using base who manage their own dependencies and make sure 135 // other projects using base who manage their own dependencies and make sure
136 // short wchar works for them. 136 // short wchar works for them.
137 #define WCHAR_T_IS_UTF16 137 #define WCHAR_T_IS_UTF16
138 #else 138 #else
139 #error Please add support for your compiler in build/build_config.h 139 #error Please add support for your compiler in build/build_config.h
140 #endif 140 #endif
141 141
142 #if defined(__ARMEL__) && !defined(OS_IOS)
143 #define WCHAR_T_IS_UNSIGNED 1
144 #elif defined(__MIPSEL__)
145 #define WCHAR_T_IS_UNSIGNED 0
146 #endif
147
148 #if defined(OS_ANDROID) 142 #if defined(OS_ANDROID)
149 // The compiler thinks std::string::const_iterator and "const char*" are 143 // The compiler thinks std::string::const_iterator and "const char*" are
150 // equivalent types. 144 // equivalent types.
151 #define STD_STRING_ITERATOR_IS_CHAR_POINTER 145 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
152 // The compiler thinks base::string16::const_iterator and "char16*" are 146 // The compiler thinks base::string16::const_iterator and "char16*" are
153 // equivalent types. 147 // equivalent types.
154 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER 148 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
155 #endif 149 #endif
156 150
157 #endif // BUILD_BUILD_CONFIG_H_ 151 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/strings/string_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698