1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

define __GNUC_PREREQ macro before using it

We brought over use of the __GNUC_PREREQ macro from libvirt but didn't
bring over the definition of it. This brings over the macro from libvirt
sources.
This commit is contained in:
Doug Goldstein 2013-12-29 16:52:15 -06:00
parent a06d78b4a1
commit c6ff569fb6

View File

@ -65,6 +65,16 @@
# endif
# ifdef __GNUC__
# ifndef __GNUC_PREREQ
# if defined __GNUC__ && defined __GNUC_MINOR__
# define __GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
# else
# define __GNUC_PREREQ(maj,min) 0
# endif
# endif /* __GNUC_PREREQ */
/**
* ATTRIBUTE_UNUSED:
*