diff options
author | Luis Hector Chavez <lhchavez@google.com> | 2016-05-25 15:29:35 -0700 |
---|---|---|
committer | Luis Hector Chavez <lhchavez@google.com> | 2016-05-27 09:06:26 -0700 |
commit | 94ffa55491333f3dcc701befd0d2652922916d99 (patch) | |
tree | 40533589f9b338f32c7f30d7d0169118eef52959 /base/compiler_specific.h | |
parent | 520be045f15462281c61e53944100d7e303679be (diff) | |
download | libchrome-94ffa55491333f3dcc701befd0d2652922916d99.tar.gz |
libchrome: Uprev the library to r395517 from Chromium
Pulled the latest and greatest version of libchrome from Chromium.
The merge was done against r395517 which corresponds to git commit
ebdcb576bb346af95b8ad219f6250daf63122f98 of May 23, 2016
Notable changes are:
- scoped_ptr was removed in favor of std::unique_ptr
- base/thread_task_runner_handle.h was moved to base/threading.
BUG: 28985443
TEST: All tests in libchrome_test pass on dragonboard-eng build
Change-Id: Ic9f9ed1cafe754c96cd2f007984514e091aaba39
Diffstat (limited to 'base/compiler_specific.h')
-rw-r--r-- | base/compiler_specific.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/compiler_specific.h b/base/compiler_specific.h index 4067d61b9a..c2a02dee01 100644 --- a/base/compiler_specific.h +++ b/base/compiler_specific.h @@ -192,4 +192,12 @@ #endif // defined(COMPILER_GCC) #endif // !defined(UNLIKELY) +// Compiler feature-detection. +// clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension +#if defined(__has_feature) +#define HAS_FEATURE(FEATURE) __has_feature(FEATURE) +#else +#define HAS_FEATURE(FEATURE) 0 +#endif + #endif // BASE_COMPILER_SPECIFIC_H_ |