From b40ece7ac6d4c72cf8a648fd1b7eee30130eac77 Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 8 Nov 2005 12:19:38 +0000 Subject: implement and test baud rates of up to 848k git-svn-id: https://svn.gnumonks.org/trunk/librfid@1663 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/rfid/rfid.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/rfid/rfid.h') 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 */ -- cgit v1.2.3