X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=23b8ca33972d29bf589cae1799896c70408392bf;hb=9334b48a221df6f96a88933be8fde35e2ef41b35;hp=48483e238b58d82e9ede0eaedf89600301804f46;hpb=8d6cf0f224b5df9866eba9350343067edcee78dd;p=ypp-sc-tools.db-test.git diff --git a/pctb/common.h b/pctb/common.h index 48483e2..23b8ca3 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -46,6 +48,7 @@ typedef struct { int w,h; + struct RgbImage *rgb; char d[]; } CanonImage; @@ -158,4 +161,8 @@ char *masprintf(const char *fmt, ...) FMT(1,2); "(Are you in the correct directory?)", helper); \ }while(0) + +#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0]))) + + #endif /*COMMON_H*/