summaryrefslogtreecommitdiff
path: root/include/rfid/rfid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rfid/rfid.h')
-rw-r--r--include/rfid/rfid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rfid/rfid.h b/include/rfid/rfid.h
index 6bb5b58..6717ef8 100644
--- a/include/rfid/rfid.h
+++ b/include/rfid/rfid.h
@@ -15,8 +15,12 @@ enum rfid_frametype {
#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
extern const char *rfid_hexdump(const void *data, unsigned int len);
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
+#endif /* __LIBRFID__ */
+
int rfid_init();
#endif /* _RFID_H */
personal git repositories of Harald Welte. Your mileage may vary