]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu/atomic.h: add #ifdef guards for stdatomic.h
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Mar 2020 16:46:16 +0000 (16:46 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 27 Mar 2020 13:42:57 +0000 (13:42 +0000)
commitf4ce3adf6b29e8e984b1a69e4876eaf4ac4022a9
tree9604dc9a4ab16ffd633caff5142cf6146a864508
parentcfe68ae025f704f336d7dd3d1903ce37b445831d
qemu/atomic.h: add #ifdef guards for stdatomic.h

Deep inside the FreeBSD netmap headers we end up including stdatomic.h
which clashes with qemu's atomic functions which are modelled along
the C11 standard. To avoid a massive rename lets just ifdef around the
problem.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200326170121.13045-1-alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
include/qemu/atomic.h