summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte2011-07-27 22:23:11 +0200
committerHarald Welte2011-07-27 23:28:41 +0200
commit430be849945688ae107b079db1e216329b1a1f06 (patch)
tree3ff4e7ae8fd15b0c0ac67e85d528922bf4fa8503 /include
parentsms: Fix style issues with the code, add spaces after keywords (diff)
downloadlibosmocore-430be849945688ae107b079db1e216329b1a1f06.tar.gz
libosmocore-430be849945688ae107b079db1e216329b1a1f06.tar.xz
libosmocore-430be849945688ae107b079db1e216329b1a1f06.zip
add definition of OSMO_MIN macro, similar to OSMO_MAX
Diffstat (limited to 'include')
-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 01b0ab9..a1a18e3 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>