From 51985f6defbc62998f4b18ecb3d2b2db8b7d5165 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 14 Apr 2004 23:50:44 +0000 Subject: make objects be dummies on non-Linux svn path=/trunk/externals/hcs/; revision=1604 --- linuxhid.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'linuxhid.h') diff --git a/linuxhid.h b/linuxhid.h index 9682503..3226535 100644 --- a/linuxhid.h +++ b/linuxhid.h @@ -6,7 +6,9 @@ #include "m_imp.h" #endif +#ifdef __gnu_linux__ #include +#endif #include @@ -18,8 +20,8 @@ #include -//#define DEBUG(x) -#define DEBUG(x) x +#define DEBUG(x) +//#define DEBUG(x) x /*------------------------------------------------------------------------------ * from evtest.c from the ff-utils package @@ -32,7 +34,7 @@ #define LONG(x) ((x)/BITS_PER_LONG) #define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1) - +#ifdef __gnu_linux__ char *events[EV_MAX + 1] = { "Reset", "Key", "Relative", "Absolute", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "LED", "Sound", NULL, "Repeat", "ForceFeedback", NULL, "ForceFeedbackStatus"}; char *keys[KEY_MAX + 1] = { "Reserved", "Esc", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "Minus", "Equal", "Backspace", @@ -80,5 +82,7 @@ char *sounds[SND_MAX + 1] = { "Bell", "Click" }; char **names[EV_MAX + 1] = { events, keys, relatives, absolutes, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, leds, sounds, NULL, repeats, NULL, NULL, NULL }; +#endif + /*------------------------------------------------------------------------------ */ -- cgit v1.2.1