mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-24 19:37:48 +03:00
priv: Add macro for MAX
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user