summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-26 14:19:54 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-26 14:19:54 +0200
commite9b744e581c13f8bfbf65f0cb78eb555ffa5e591 (patch)
tree470359766e1c3faca7a04a96e7a32ac5c6fb66ca /include/osmocom/core
parent32e1f239b3b8f04c8f26c80ea87c978040c122bf (diff)
add MAX() macro as OSMO_MAX
Diffstat (limited to 'include/osmocom/core')
-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 0f1ea3bb..01b0ab99 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -2,6 +2,7 @@
#define OSMOCORE_UTIL_H
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define OSMO_MAX(a, b) (a) >= (b) ? (a) : (b)
#include <stdint.h>