summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 0ee5361..2e8db26 100644
--- a/src/util.h
+++ b/src/util.h
@@ -46,4 +46,8 @@ extern int verbose;
#define strerrno() strerror(errno)
+
+#define min(a, b) (((a) > (b)) ? (b) : (a))
+#define max(a, b) (((a) > (b)) ? (a) : (b))
+
#endif /* _UTIL_H_ */