diff options
Diffstat (limited to 'posix/regex.c')
-rw-r--r-- | posix/regex.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/posix/regex.c b/posix/regex.c index 0d5b51f..03bda25 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -41,6 +41,12 @@ # define re_compile_fastmap(bufp) __re_compile_fastmap (bufp) #endif +#if _LIBC || __GNUC__ >= 3 +# define BE(expr, val) __builtin_expect (expr, val) +#else +# define BE(expr, val) (expr) +#endif + #include "regcomp.c" #include "regexec.c" #include "regex_internal.c" |