BUILD: compiler: undefine the CONCAT() macro if already defined
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Apr 2025 09:36:43 +0000 (11:36 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 15 Apr 2025 18:11:37 +0000 (20:11 +0200)
commit13c6cf9daaae43c232f4a5d1e49c4db71dfba720
treed5edf5bac991db40a58d42d850b7b10f00fb9e9e
parent4dc67865e1e3d518b57bd314ec556d80e871b12b
BUILD: compiler: undefine the CONCAT() macro if already defined

As Ilya reported in issue #2911, the CONCAT() macro breaks on NetBSD
which defines its own as __CONCAT() (which is exactly the same). Let's
just undefine it before ours to fix the issue instead of renaming, but
keep ours so that we don't have doubts about what we're running with.

Note that the patch introducing this breaking change was backported
to 3.0.

(cherry picked from commit 4ec5509541e29956107011d45c971a9fe3a430f1)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
(cherry picked from commit bf3252c1d48a63cccee17793b1f24e01409eaf01)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
include/haproxy/compiler.h