[libvirt] [PATCHv3] Macro for testing the version you are compiling with

Eric Blake eblake at redhat.com
Mon Nov 18 18:00:58 UTC 2013


On 11/18/2013 10:54 AM, Doug Goldstein wrote:
> Added a macro similar to the GLib's GLIB_CHECK_VERSION so that one can
> simply do something like:
> 
>  #if LIBVIR_CHECK_VERSION(1,1,3)
>    /* Call function here that appeared in 1.1.3 and newer */
>    virSomeNewFunction();
>  #endif
> ---
> v3: rename from LIBVIRT_CHECK_VERSION to LIBVIR_CHECK_VERSION
> v2: Change from Linux kernel style macro to GLib style macro
> ---
>  include/libvirt/libvirt.h.in | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131118/9fa69802/attachment-0001.sig>


More information about the libvir-list mailing list