From: skeezix Date: Sat, 10 Oct 2009 23:32:37 +0000 (-0400) Subject: Remove dependancy on pnd_keytype.h since it stinks :) X-Git-Tag: Release-2010-05/1~156^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b672d75a64e614fdbf3e12d5e66e81fc0309edad;p=pandora-libraries.git Remove dependancy on pnd_keytype.h since it stinks :) --- diff --git a/lib/pnd_io_gpio.c b/lib/pnd_io_gpio.c index 0fe8861..23105e5 100755 --- a/lib/pnd_io_gpio.c +++ b/lib/pnd_io_gpio.c @@ -1,11 +1,20 @@ #if defined (_PANDORA) || !defined (EMULATOR) +/* cribbed from pnd_keytypes.h so as to make it unnecessary */ + #define BITS_PER_LONG (sizeof(long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) + #include + #include + #include + #include +/* back to reality */ + #include /* abs() */ #include /* struct input_event */ #include "pnd_io_gpio.h" -#include "pnd_keytype.h" +//#include "pnd_keytype.h" unsigned char GLES2D_Pad [ pke_pad_max ]; diff --git a/lib/pnd_keytype.h b/lib/pnd_keytype.h index 5054cab..ccf12b5 100644 --- a/lib/pnd_keytype.h +++ b/lib/pnd_keytype.h @@ -1,3 +1,5 @@ +/* is this file even necessary? removing dependancies to it.. */ + /* history.. * I (skeezix) bugged cpasjuste for his gpio event code, which in turn depends on this * cpasjuste got it or some of the code possibly from notaz