mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 11:58:03 +02:00
Add a MIN macro
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
384a11aeac
commit
f568fd5c35
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue