X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3e134b4c20a5528b8264cd87d3fdebd0b2df6fd9..a1ab594e244c1554b2e997efa8813e8ec3b80017:/armsrc/util.h diff --git a/armsrc/util.h b/armsrc/util.h index 486f22e9..05364519 100644 --- a/armsrc/util.h +++ b/armsrc/util.h @@ -37,6 +37,9 @@ #ifndef BITMASK # define BITMASK(X) (1 << (X)) #endif +#ifndef ARRAYLEN +# define ARRAYLEN(x) (sizeof(x)/sizeof((x)[0])) +#endif void print_result(char *name, uint8_t *buf, size_t len); size_t nbytes(size_t nbits);