From 9554c20806f8da1482790543f2ec5a3c91b363d0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 22 Oct 2004 18:49:16 +0000 Subject: more progress generalizing for cross-platformness; Darwin stuff compiles and the object loads, but it doesn't do anything yet svn path=/trunk/externals/hcs/hid/; revision=2141 --- hid_linux.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 hid_linux.c (limited to 'hid_linux.c') diff --git a/hid_linux.c b/hid_linux.c new file mode 100644 index 0000000..94a400b --- /dev/null +++ b/hid_linux.c @@ -0,0 +1,27 @@ +#ifdef __linux__ + +#include + + +#define DEBUG(x) +//#define DEBUG(x) x + + + + + +/*------------------------------------------------------------------------------ + * from evtest.c from the ff-utils package + */ + +#define BITS_PER_LONG (sizeof(long) * 8) +#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) +#define OFF(x) ((x)%BITS_PER_LONG) +#define BIT(x) (1UL<> OFF(bit)) & 1) + + + + +#endif /* #ifdef __linux__ */ -- cgit v1.2.1