X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=fwcutter%2Ffwcutter.h;h=4a887b632459376834def552d193e4fc4673812f;hb=ce65ccbd3871205689492a0e810c425763e0af9e;hp=2e47073cc7db47def23717b6e33fce13303f659e;hpb=712f2d241d3447ebc7b97abd591afe9737ac7fa8;p=b43-tools.git diff --git a/fwcutter/fwcutter.h b/fwcutter/fwcutter.h index 2e47073..4a887b6 100644 --- a/fwcutter/fwcutter.h +++ b/fwcutter/fwcutter.h @@ -9,6 +9,9 @@ #define fwcutter_stringify(x) fwcutter_stringify_1(x) #define FWCUTTER_VERSION fwcutter_stringify(FWCUTTER_VERSION_) +#undef ARRAY_SIZE +#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) + typedef uint16_t be16_t; /* Big-endian 16bit */ typedef uint32_t be32_t; /* Big-endian 32bit */ @@ -65,6 +68,7 @@ struct extract { struct file { const char *name; + const char *id; const char *ucode_version; const char *md5; const struct extract *extract;