[PATCH] avoid AltiVec keyword vector
Thomas Monjalon
thomas at monjalon.net
Wed May 25 10:18:51 CEST 2022
04/05/2022 22:40, David Christensen:
> On 5/3/22 5:03 AM, Thomas Monjalon wrote:
> > The keyword "vector" may conflict easily.
> > As a rule, it is better to use the alternative keyword "__vector".
> >
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
>
> Reviewed-by: David Christensen <drc at linux.vnet.ibm.com>
Applied with a longer explanation:
The AltiVec header file is defining "vector", except in C++ build.
The keyword "vector" may conflict easily.
As a rule, it is better to use the alternative keyword "__vector",
so we will be able to #undef vector after including AltiVec header.
Later it may become possible to #undef vector in rte_altivec.h
with a compatibility breakage.
More information about the dev
mailing list