diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2013-12-29 16:52:15 -0600 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2013-12-30 12:36:31 -0600 |
commit | c6ff569fb6a535cb625cd99d22052f756eae5b56 (patch) | |
tree | b03e22e70a1fb7fb4717fc52b3e161098a7fa5a7 /libvirt-utils.h | |
parent | a06d78b4a1ce0ce2e46fe41be2c373647e79cec7 (diff) | |
download | libvirt-python-c6ff569fb6a535cb625cd99d22052f756eae5b56.tar.gz |
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.
Diffstat (limited to 'libvirt-utils.h')
-rw-r--r-- | libvirt-utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libvirt-utils.h b/libvirt-utils.h index f55be7b..f59a237 100644 --- a/libvirt-utils.h +++ b/libvirt-utils.h @@ -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: * |