X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=e4100f9d461bcfe216c061970016b4daa759936b;hb=c2c039f07de178037bfbf12e4ee23c06f546de32;hp=48483e238b58d82e9ede0eaedf89600301804f46;hpb=479a3cc7b4b79e8cb4df95664da5a9b0cb7918de;p=ypp-sc-tools.web-live.git diff --git a/pctb/common.h b/pctb/common.h index 48483e2..e4100f9 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -158,4 +160,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*/