[libvirt] [PATCHv2 1/9] util: define MAX
Eric Blake
eblake at redhat.com
Wed Jul 20 20:17:00 UTC 2011
On 07/20/2011 12:21 AM, Laine Stump wrote:
> If util.h is going to have a MIN, it may as well also have MAX.
> ---
> src/util/util.h | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/util/util.h b/src/util/util.h
> index e8197be..af8b15d 100644
> --- a/src/util/util.h
> +++ b/src/util/util.h
> @@ -35,6 +35,9 @@
> # ifndef MIN
> # define MIN(a, b) ((a)< (b) ? (a) : (b))
> # endif
> +# ifndef MAX
> +# define MAX(a, b) ((a)> (b) ? (a) : (b))
> +# endif
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list