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

Side by Side Diff: base/compiler_specific.h

Issue 691783003: [WIP NOT FOR COMMIT] Switch Android to libc++ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 6 years, 1 month 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
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 #ifndef BASE_COMPILER_SPECIFIC_H_ 5 #ifndef BASE_COMPILER_SPECIFIC_H_
6 #define BASE_COMPILER_SPECIFIC_H_ 6 #define BASE_COMPILER_SPECIFIC_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #define typeof(x) __typeof__(x)
Nico 2014/10/30 17:02:41 See http://crbug.com/427584 for this – we shouldn'
Fabrice (no longer in Chrome) 2014/10/30 17:32:52 Done.
11
10 #if defined(COMPILER_MSVC) 12 #if defined(COMPILER_MSVC)
11 13
12 // Macros for suppressing and disabling warnings on MSVC. 14 // Macros for suppressing and disabling warnings on MSVC.
13 // 15 //
14 // Warning numbers are enumerated at: 16 // Warning numbers are enumerated at:
15 // http://msdn.microsoft.com/en-us/library/8x5x43k7(VS.80).aspx 17 // http://msdn.microsoft.com/en-us/library/8x5x43k7(VS.80).aspx
16 // 18 //
17 // The warning pragma: 19 // The warning pragma:
18 // http://msdn.microsoft.com/en-us/library/2c8f766e(VS.80).aspx 20 // http://msdn.microsoft.com/en-us/library/2c8f766e(VS.80).aspx
19 // 21 //
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Macro for hinting that an expression is likely to be false. 194 // Macro for hinting that an expression is likely to be false.
193 #if !defined(UNLIKELY) 195 #if !defined(UNLIKELY)
194 #if defined(COMPILER_GCC) 196 #if defined(COMPILER_GCC)
195 #define UNLIKELY(x) __builtin_expect(!!(x), 0) 197 #define UNLIKELY(x) __builtin_expect(!!(x), 0)
196 #else 198 #else
197 #define UNLIKELY(x) (x) 199 #define UNLIKELY(x) (x)
198 #endif // defined(COMPILER_GCC) 200 #endif // defined(COMPILER_GCC)
199 #endif // !defined(UNLIKELY) 201 #endif // !defined(UNLIKELY)
200 202
201 #endif // BASE_COMPILER_SPECIFIC_H_ 203 #endif // BASE_COMPILER_SPECIFIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698