[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



"Daniel P. Berrange" <berrange 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]