aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-08-24 17:27:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-24 17:27:34 +0200
commitde35212789d11086621e176a11399de0d75ab3a6 (patch)
tree48e4c8b0e4a37d31616f7df32d2c53930bc55b6b /include/libssh
parent337306600b709065dc4b3a0949bba94b1338252d (diff)
downloadlibssh-de35212789d11086621e176a11399de0d75ab3a6.tar.gz
libssh-de35212789d11086621e176a11399de0d75ab3a6.tar.xz
libssh-de35212789d11086621e176a11399de0d75ab3a6.zip
priv: Add macro for MAX
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 5dd65bd4..d31992d4 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -263,6 +263,10 @@ int ssh_connector_remove_event(ssh_connector connector);
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
+#ifndef MAX
+#define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
/** Free memory space */
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)