]> git.droids-corp.org - dpdk.git/commit
eal/ppc: undefine AltiVec keyword vector
authorThomas Monjalon <thomas@monjalon.net>
Wed, 25 May 2022 09:53:07 +0000 (11:53 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jun 2022 14:51:53 +0000 (16:51 +0200)
commitb251bb76308f664c24a3dffd55236e92a2230901
tree6998929fb18bcf6aecdf12bdc0ff4377d2435d5e
parent30278c443a1da4589701b36f74333a797e24c388
eal/ppc: undefine AltiVec keyword vector

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".

The DPDK header file rte_altivec.h takes care of undefining "vector",
so the applications and dependencies are free to define the name "vector".

This is a compatibility breakage for applications which were using
the keyword "vector" for its AltiVec meaning.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Ali Alnubani <alialnu@nvidia.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
doc/guides/rel_notes/release_22_07.rst
lib/eal/ppc/include/rte_altivec.h