diff --git a/lib/isc/include/isc/likely.h b/lib/isc/include/isc/likely.h index 6c77957ebd..b127f45027 100644 --- a/lib/isc/include/isc/likely.h +++ b/lib/isc/include/isc/likely.h @@ -15,6 +15,10 @@ /*% * Performance */ +#ifdef CPPCHECK +#define ISC_LIKELY(x) (x) +#define ISC_UNLIKELY(x) (x) +#else #ifdef HAVE_BUILTIN_EXPECT #define ISC_LIKELY(x) __builtin_expect((x), 1) #define ISC_UNLIKELY(x) __builtin_expect((x), 0) @@ -22,5 +26,6 @@ #define ISC_LIKELY(x) (x) #define ISC_UNLIKELY(x) (x) #endif +#endif #endif /* ISC_LIKELY_H */