Hi Paul,

> -#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__)
> +#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) && !__clang__

Why is this needed? clang 18 still masquerades as a GCC 4.2.1 compatible
compiler:

$ : | clang -E -dM - | grep __GNUC_
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4

So, when we have a conditional that tests for GCC >= 4.7 or 10 or 14,
we don't need to exclude clang, because it's already excluded.

Or am missing something?

Bruno




Reply via email to