From 46d3cfd29dc701e1e0d18b0380d6299fce7944f2 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Tue, 23 Nov 2021 16:06:42 +0000 Subject: libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355 Fix the definition of ATTR_LIKELY when __has_cpp_attribute is not defined, as it is the case with old compilers such as gcc-4.8.5. libcpp/: PR preprocessor/103355 * system.h (ATTR_LIKELY): Fix definition. --- libcpp/system.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcpp/system.h b/libcpp/system.h index f6fc583..b78ab81 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -430,6 +430,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; # else # define ATTR_LIKELY # endif +#else +# define ATTR_LIKELY #endif /* Poison identifiers we do not want to use. */ -- cgit v1.1