summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-02-07 16:58:39 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-02-07 16:58:39 +0100
commit2b4acc824ef61f6468be31b83344f5ac4e45a41f (patch)
tree02ef1e2d2d972e61b66b6ff7ad64021c8b18208e /src
parent237c6e951a8268afeaa288d8ddf0c79da32f6fd1 (diff)
downloadsocket_wrapper-2b4acc824ef61f6468be31b83344f5ac4e45a41f.tar.gz
socket_wrapper-2b4acc824ef61f6468be31b83344f5ac4e45a41f.tar.xz
socket_wrapper-2b4acc824ef61f6468be31b83344f5ac4e45a41f.zip
Add MIN macro.
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 7cf09a8..c35e1d0 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -66,6 +66,10 @@
#define _PUBLIC_
#endif
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
#define SWRAP_DLIST_ADD(list,item) do { \
if (!(list)) { \
(item)->prev = NULL; \