From f568fd5c356d0579d32349078e2ca95bdb1425db Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 26 Jun 2013 22:20:30 -0500 Subject: [PATCH] Add a MIN macro Signed-off-by: Jason Ekstrand --- src/compositor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index bd6344d..6d2c683 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -36,6 +36,10 @@ extern "C" { #include "matrix.h" #include "config-parser.h" +#ifndef MIN +#define MIN(x,y) (((x) < (y)) ? (x) : (y)) +#endif + #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) #define container_of(ptr, type, member) ({ \ -- 2.7.4