summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-03-03 17:37:08 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-03-03 17:37:08 +0000
commit5664d8412ddab42bac1cdd8f77a6e94bb66b024a (patch)
tree611b658f08d1e2418629709c3ed204e6ad3fccac
parentf85c04469ea397f73e86161966fae7ffd84560e2 (diff)
downloadrockbox-5664d8412ddab42bac1cdd8f77a6e94bb66b024a.tar.gz
rockbox-5664d8412ddab42bac1cdd8f77a6e94bb66b024a.tar.bz2
rockbox-5664d8412ddab42bac1cdd8f77a6e94bb66b024a.zip
Fix compilation issues for sdl when HAVE_BUTTON_DATA is not defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29511 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/hosted/sdl/app/button-target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/app/button-target.h b/firmware/target/hosted/sdl/app/button-target.h
index 5295315e2e..d4396fd0d5 100644
--- a/firmware/target/hosted/sdl/app/button-target.h
+++ b/firmware/target/hosted/sdl/app/button-target.h
@@ -31,7 +31,11 @@
bool button_hold(void);
*/
void button_init_device(void);
+#ifdef HAVE_BUTTON_DATA
int button_read_device(int *data);
+#else
+int button_read_device(void);
+#endif
/* Main unit's buttons */
#define BUTTON_UP 0x00000001