summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index aa57269..a7f8353 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,7 +1,9 @@
#ifndef UTILS_H
#define UTILS_H
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
#define mint(x,y) ({(void)(&x == &y); x < y ? x : y; })
#define maxt(x,y) ({(void)(&x == &y); x < y ? y : x; })