summaryrefslogtreecommitdiff
path: root/tools/eficapsule.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eficapsule.h')
-rw-r--r--tools/eficapsule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/eficapsule.h b/tools/eficapsule.h
index 2099a2e9b88..6efd07d2eb6 100644
--- a/tools/eficapsule.h
+++ b/tools/eficapsule.h
@@ -22,6 +22,8 @@
#define __aligned(x) __attribute__((__aligned__(x)))
#endif
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
typedef struct {
uint8_t b[16];
} efi_guid_t __aligned(8);