diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2013-06-26 22:20:30 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-03 14:52:05 -0400 |
commit | f568fd5c356d0579d32349078e2ca95bdb1425db (patch) | |
tree | da676af5d23a3a80cf1f9cb00caa88c8cdfb7eed | |
parent | 384a11aeac59ade8e0ce94c34c134ccc47537bd0 (diff) |
Add a MIN macro
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r-- | src/compositor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor.h b/src/compositor.h index bd6344d6..6d2c683b 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) ({ \ |