diff --git a/hpy/devel/include/hpy.h b/hpy/devel/include/hpy.h index cdb444195..c0af94b93 100644 --- a/hpy/devel/include/hpy.h +++ b/hpy/devel/include/hpy.h @@ -82,7 +82,7 @@ extern "C" { #endif #ifdef HPY_ABI_UNIVERSAL -# if __has_attribute(error) +# if _HPY_compiler_has_attribute(error) // gcc, clang>=14 # define _HPY_LEGACY __attribute__((error("Cannot use legacy functions when targeting the HPy Universal ABI"))) # else