1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Wrap __builtin_expect in pthread.h

[BZ #14188]
This fixes compilation of programs using pthread_cleanup_push built
with non-gcc compilers and older gcc compilers.
This commit is contained in:
Siddhesh Poyarekar
2012-06-04 11:41:24 +05:30
parent 2fd6ff133b
commit 4af3879c26
4 changed files with 24 additions and 2 deletions

View File

@ -369,6 +369,12 @@
# endif
#endif
#if __GNUC__ >= 3
# define __glibc_unlikely(cond) __builtin_expect((cond), 0)
#else
# define __glibc_unlikely(cond) (cond)
#endif
#include <bits/wordsize.h>
#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH