diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-15 22:13:16 -0400 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2013-05-24 18:20:53 +1000 |
commit | 4ad49c3a9cdaccac02cd448c2704ea52ad85d1dc (patch) | |
tree | d09e4c77401812a5142a85f4cbe38980b29e30f6 /dtc.h | |
parent | b9e80656f2de441826ed2ff1cd9c5d43b3ae43d3 (diff) | |
download | device-tree-compiler-4ad49c3a9cdaccac02cd448c2704ea52ad85d1dc.tar.gz |
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 <vapier@gentoo.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.h')
-rw-r--r-- | dtc.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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 { |