aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2019-08-23 10:59:03 +0100
committersin <sin@2f30.org>2019-08-24 11:25:43 +0100
commit237f8a910e96ca9b6a7f4c9438010e7995797ac1 (patch)
tree28ea8ed31c616013fd540b6e38be7b6e53958f27 /util.h
parenta4c4570b0b249bebe74951f3ca8887ea6c644c12 (diff)
downloadnoice-237f8a910e96ca9b6a7f4c9438010e7995797ac1.tar.gz
Move MIN() to util.h
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index 6479276..507324a 100644
--- a/util.h
+++ b/util.h
@@ -1,4 +1,6 @@
/* See LICENSE file for copyright and license details. */
+#undef MIN
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define LEN(x) (sizeof(x) / sizeof(*(x)))
#define NR_ARGS 32
Un proyecto texto-plano.xyz