[libvirt] [PATCH] Don't use undocumented __isleap macro

Ben Pfaff blp at cs.stanford.edu
Thu Dec 1 17:36:43 UTC 2011


"Daniel P. Berrange" <berrange at redhat.com> writes:

> +#define is_leap_year(y) \
> +    ((y) % 4 == 0 && ((y) % 100 != 0 || (y) % 400 == 0))

It seems odd to use a macro instead of a function for this.
-- 
Ben Pfaff 
http://benpfaff.org




More information about the libvir-list mailing list