From: Jason Ekstrand Date: Thu, 27 Jun 2013 03:20:30 +0000 (-0500) Subject: Add a MIN macro X-Git-Tag: upstream/0.1.8~1179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f568fd5c356d0579d32349078e2ca95bdb1425db;p=profile%2Fivi%2Fweston-ivi-shell.git Add a MIN macro Signed-off-by: Jason Ekstrand --- 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) ({ \