diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-27 22:23:11 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-27 23:28:41 +0200 |
commit | 430be849945688ae107b079db1e216329b1a1f06 (patch) | |
tree | 3ff4e7ae8fd15b0c0ac67e85d528922bf4fa8503 | |
parent | 7e1a622124a6ca6c98e1f3170bf65649ad4321d9 (diff) |
add definition of OSMO_MIN macro, similar to OSMO_MAX
-rw-r--r-- | include/osmocom/core/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h index 01b0ab99..a1a18e30 100644 --- a/include/osmocom/core/utils.h +++ b/include/osmocom/core/utils.h @@ -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> |