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

Side by Side Diff: build/build_config.h

Issue 315004: Added a case to build_config.h to cover compiling for Linux with 16-bit wchar... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698