summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-19 19:20:26 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-11-20 14:45:31 +0100
commit34dc6551c0a4b1ab76f524ee7949932e3e6e96f3 (patch)
tree3d04ea3a4cad655d563f6329ac524c3870694555
parent7ac3580d0d031c750d73cc3badf0266e1f15581d (diff)
fs/unicode/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--fs/unicode/mkutf8data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/unicode/mkutf8data.c b/fs/unicode/mkutf8data.c
index ff2025ac5a32..d23aa3cb6d4b 100644
--- a/fs/unicode/mkutf8data.c
+++ b/fs/unicode/mkutf8data.c
@@ -18,6 +18,8 @@
/* Generator for a compact trie for unicode normalization */
+
+#include <linux/array_size.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdlib.h>
@@ -27,6 +29,7 @@
#include <unistd.h>
#include <errno.h>
+
/* Default names of the in- and output files. */
#define AGE_NAME "DerivedAge.txt"
@@ -60,8 +63,6 @@ char buf3[LINESIZE];
const char *argv0;
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
/* ------------------------------------------------------------------ */
/*