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

Side by Side Diff: build/build_config.h

Issue 11411318: DO NOT COMMIT: NullPtr support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP Created 8 years 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 | « base/nullptr_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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 #if defined(OS_ANDROID) 145 #if defined(OS_ANDROID)
146 // The compiler thinks std::string::const_iterator and "const char*" are 146 // The compiler thinks std::string::const_iterator and "const char*" are
147 // equivalent types. 147 // equivalent types.
148 #define STD_STRING_ITERATOR_IS_CHAR_POINTER 148 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
149 // The compiler thinks base::string16::const_iterator and "char16*" are 149 // The compiler thinks base::string16::const_iterator and "char16*" are
150 // equivalent types. 150 // equivalent types.
151 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER 151 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
152 #endif 152 #endif
153 153
154 #if defined(__clang__)
155 #if __has_feature(cxx_nullptr)
156 #define NULLPTR_IS_NATIVE_TYPE 1
157 #endif
158 #elif defined(COMPILER_MSVC) && _MSC_VER >= 1600 && defined(_NATIVE_NULLPTR_SUPP ORTED)
159 #define NULLPTR_IS_NATIVE_TYPE 1
160 #elif defined(COMPILER_GCC)
161 #if GCC_VERSION_AT_LEAST(4, 7, 0) && defined(__cplusplus) && __cplusplus >= 2011 03L
162 #define NULLPTR_IS_NATIVE_TYPE 1
163 #elif GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)
164 #define NULLPTR_IS_NATIVE_TYPE 1
165 #endif
166 #endif
167
154 #endif // BUILD_BUILD_CONFIG_H_ 168 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/nullptr_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698