]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compiler: always define __has_feature()
authorWilly Tarreau <w@1wt.eu>
Tue, 16 Jun 2020 17:13:24 +0000 (19:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Jun 2020 17:13:24 +0000 (19:13 +0200)
commit6d4c81db96ed28449cd2f753570830e21ace8fb9
tree8f0f5aff08fcc193e5f4c3446ba92fa4753e90ca
parent88bd9ee6a381993819704c979b3bc5a18e649025
MINOR: compiler: always define __has_feature()

This macro is provided by clang but gcc lacks it. Not having it makes
it painful to test features on both compilers. Better define it to zero
when not available so that __has_feature(foo) never errors.
include/haproxy/compiler.h