diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-12-10 17:47:52 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-15 12:53:15 -0500 |
commit | 07b35a23c3ccecde85e80fd9981abf2e15c1384b (patch) | |
tree | 6ca3dfaeb00af4ef4950b8924510afc197e4111c /include | |
parent | 36c5e0b8efb7a54b1cecca05de55a49ab91ac6dd (diff) | |
download | qemu-07b35a23c3ccecde85e80fd9981abf2e15c1384b.zip qemu-07b35a23c3ccecde85e80fd9981abf2e15c1384b.tar.gz qemu-07b35a23c3ccecde85e80fd9981abf2e15c1384b.tar.bz2 |
compiler.h: remove QEMU_GNUC_PREREQ
When needed, the G_GNUC_CHECK_VERSION() glib macro can be used instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201210134752.780923-14-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/compiler.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 5e6cf2c..1b9e58e 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -11,17 +11,6 @@ #define QEMU_STATIC_ANALYSIS 1 #endif -/*---------------------------------------------------------------------------- -| The macro QEMU_GNUC_PREREQ tests for minimum version of the GNU C compiler. -| The code is a copy of SOFTFLOAT_GNUC_PREREQ, see softfloat-macros.h. -*----------------------------------------------------------------------------*/ -#if defined(__GNUC__) && defined(__GNUC_MINOR__) -# define QEMU_GNUC_PREREQ(maj, min) \ - ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) -#else -# define QEMU_GNUC_PREREQ(maj, min) 0 -#endif - #define QEMU_NORETURN __attribute__ ((__noreturn__)) #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |