implement and test baud rates of up to 848k
[librfid] / include / rfid / rfid.h
index 6bb5b58..6717ef8 100644 (file)
@@ -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 */