chiark / gitweb /
New --show-charset mode
[ypp-sc-tools.web-live.git] / pctb / common.h
index 48483e238b58d82e9ede0eaedf89600301804f46..e4100f9d461bcfe216c061970016b4daa759936b 100644 (file)
@@ -39,6 +39,8 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <dirent.h>
+#include <pcre.h>
 #include <inttypes.h>
 
 #include <sys/wait.h>
@@ -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*/