OSDN Git Service

includes: Replace QEMU_GNUC_PREREQ with "__has_builtin || !defined(__clang__)"
authorThomas Huth <thuth@redhat.com>
Mon, 3 Dec 2018 13:33:12 +0000 (14:33 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Dec 2018 09:01:13 +0000 (10:01 +0100)
commitf773b423cc61f3ca18af5337101c158a52aaae2c
tree44a8fa2b8df8537ad85f1c99bcb3c1815ced6c78
parent65557f5ed9026f288654bfcfb696b581c1ef49c5
includes: Replace QEMU_GNUC_PREREQ with "__has_builtin || !defined(__clang__)"

Since we require GCC version 4.8 or newer now, we can be sure that
the builtin functions are always available on GCC. And for Clang,
we can check the availablility with __has_builtin instead.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/qemu/compiler.h
include/qemu/host-utils.h