From 4ad49c3a9cdaccac02cd448c2704ea52ad85d1dc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 15 Apr 2013 22:13:16 -0400 Subject: util: add common ARRAY_SIZE define I want to use this in more places, so put it in util.h rather than copying & pasting it into another file. Signed-off-by: Mike Frysinger Signed-off-by: David Gibson --- dtc.h | 1 - 1 file changed, 1 deletion(-) (limited to 'dtc.h') diff --git a/dtc.h b/dtc.h index 3e42a07..264a20c 100644 --- a/dtc.h +++ b/dtc.h @@ -66,7 +66,6 @@ typedef uint32_t cell_t; #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* Data blobs */ enum markertype { -- cgit v1.1