From 2b4acc824ef61f6468be31b83344f5ac4e45a41f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 7 Feb 2013 16:58:39 +0100 Subject: Add MIN macro. --- src/socket_wrapper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; \ -- cgit