summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte2011-06-26 14:19:54 +0200
committerHarald Welte2011-06-26 14:19:54 +0200
commite9b744e581c13f8bfbf65f0cb78eb555ffa5e591 (patch)
tree470359766e1c3faca7a04a96e7a32ac5c6fb66ca /include
parentmerge process.[ch] with application.[ch] (diff)
downloadlibosmocore-e9b744e581c13f8bfbf65f0cb78eb555ffa5e591.tar.gz
libosmocore-e9b744e581c13f8bfbf65f0cb78eb555ffa5e591.tar.xz
libosmocore-e9b744e581c13f8bfbf65f0cb78eb555ffa5e591.zip
add MAX() macro as 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 0f1ea3b..01b0ab9 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>