Fix a compiling problem under ClangC2.

This commit is contained in:
Minmin Gong
2017-01-29 22:02:51 -08:00
parent 79ac4bdbeb
commit 328f0f40c8

View File

@ -57,7 +57,7 @@
#define BOOST_HAS_NRVO
// Branch prediction hints
#if defined(__has_builtin)
#if !defined (__c2__) && defined(__has_builtin)
#if __has_builtin(__builtin_expect)
#define BOOST_LIKELY(x) __builtin_expect(x, 1)
#define BOOST_UNLIKELY(x) __builtin_expect(x, 0)