Add a MIN macro

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
dev
Jason Ekstrand 11 years ago committed by Kristian Høgsberg
parent 384a11aeac
commit f568fd5c35
  1. 4
      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) ({ \

Loading…
Cancel
Save