add definition of OSMO_MIN macro, similar to OSMO_MAX

This commit is contained in:
Harald Welte 2011-07-27 22:23:11 +02:00
parent 7e1a622124
commit 430be84994
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define OSMO_MAX(a, b) (a) >= (b) ? (a) : (b)
#define OSMO_MIN(a, b) (a) >= (b) ? (b) : (a)
#include <stdint.h>