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