# HG changeset patch # User diego # Date 1204223537 0 # Node ID 90e9ac3ee4c0a3063741262098fc062aa6b7363e # Parent d6b05b1a9b3f376b8427fcab63b228798003dc88 joystick.c is only ever compiled on Linux, remove pointless #ifdef around the whole file and dummy functions. diff -r d6b05b1a9b3f -r 90e9ac3ee4c0 input/joystick.c --- a/input/joystick.c Thu Feb 28 18:31:35 2008 +0000 +++ b/input/joystick.c Thu Feb 28 18:32:17 2008 +0000 @@ -24,8 +24,6 @@ #define JS_DEV "/dev/input/js0" #endif -#ifdef TARGET_LINUX - #include int axis[256]; @@ -145,18 +143,3 @@ return MP_INPUT_NOTHING; } - -#else /* TARGET_LINUX */ - -// dummy function - -int mp_input_joystick_init(char* dev) { - return -1; -} - -int mp_input_joystick_read(int fd) { - - return MP_INPUT_NOTHING; -} - -#endif /* TARGET_LINUX */