summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-27 22:23:11 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-27 23:28:41 +0200
commit430be849945688ae107b079db1e216329b1a1f06 (patch)
tree3ff4e7ae8fd15b0c0ac67e85d528922bf4fa8503
parent7e1a622124a6ca6c98e1f3170bf65649ad4321d9 (diff)
add definition of OSMO_MIN macro, similar to OSMO_MAX
-rw-r--r--include/osmocom/core/utils.h1
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>