diff options
Diffstat (limited to 'tests/gpg/t-support.h')
-rw-r--r-- | tests/gpg/t-support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gpg/t-support.h b/tests/gpg/t-support.h index 929a5d13..54880557 100644 --- a/tests/gpg/t-support.h +++ b/tests/gpg/t-support.h @@ -25,6 +25,10 @@ #include <gpgme.h> +#ifndef DIM +#define DIM(v) (sizeof(v)/sizeof((v)[0])) +#endif + #define fail_if_err(err) \ do \ { \ |