From 5664d8412ddab42bac1cdd8f77a6e94bb66b024a Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Thu, 3 Mar 2011 17:37:08 +0000 Subject: 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 --- firmware/target/hosted/sdl/app/button-target.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit