aboutsummaryrefslogtreecommitdiffstats
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
parenta4c4570b0b249bebe74951f3ca8887ea6c644c12 (diff)
downloadnoice-237f8a910e96ca9b6a7f4c9438010e7995797ac1.tar.gz
Move MIN() to util.h
-rw-r--r--noice.c2
-rw-r--r--util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/noice.c b/noice.c
index c00853f..773cadd 100644
--- a/noice.c
+++ b/noice.c
@@ -18,8 +18,6 @@
#include "util.h"
-#undef MIN
-#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define ISODD(x) ((x) & 1)
#define CONTROL(c) ((c) ^ 0x40)
#define META(c) ((c) ^ 0x80)
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