X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3e134b4c20a5528b8264cd87d3fdebd0b2df6fd9..b62cbadb6198fcfcf7b6787acac01b5b7262eea6:/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);