summaryrefslogtreecommitdiff
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.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 @@
31bool button_hold(void); 31bool button_hold(void);
32*/ 32*/
33void button_init_device(void); 33void button_init_device(void);
34#ifdef HAVE_BUTTON_DATA
34int button_read_device(int *data); 35int button_read_device(int *data);
36#else
37int button_read_device(void);
38#endif
35 39
36/* Main unit's buttons */ 40/* Main unit's buttons */
37#define BUTTON_UP 0x00000001 41#define BUTTON_UP 0x00000001