Add a MIN macro

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Jason Ekstrand 2013-06-26 22:20:30 -05:00 committed by Kristian Høgsberg
parent 384a11aeac
commit f568fd5c35

View file

@ -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) ({ \