Remove dependancy on pnd_keytype.h since it stinks :)
authorskeezix <skeezix@flotsam-vm.(none)>
Sat, 10 Oct 2009 23:32:37 +0000 (19:32 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Sat, 10 Oct 2009 23:32:37 +0000 (19:32 -0400)
lib/pnd_io_gpio.c
lib/pnd_keytype.h

index 0fe8861..23105e5 100755 (executable)
@@ -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 <string.h>
+  #include <fcntl.h>
+  #include <unistd.h>
+  #include <stdio.h>
+/* back to reality */
+
 #include <stdlib.h> /* abs() */
 #include <linux/input.h> /* struct input_event */
 
 #include "pnd_io_gpio.h"
-#include "pnd_keytype.h"
+//#include "pnd_keytype.h"
 
 unsigned char GLES2D_Pad [ pke_pad_max ];
 
index 5054cab..ccf12b5 100644 (file)
@@ -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