summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 6912426..cd499a1 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -15,6 +15,10 @@
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
+#ifndef min
+#define min(a,b) (((a) > (b)) ? (b) : (a))
+#endif
+
#ifndef N_ELEMENTS
#define N_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0]))
#endif