Fix: SDL_EVDEV_device_removed does not need UDEV
authorGabriel Jacobo <gabomdq@gmail.com>
Sat, 28 Sep 2013 19:17:27 -0300
changeset 7767 0d425d6327d8
parent 7766 84b154b1ed71
child 7768 dd5a807cd5ec
Fix: SDL_EVDEV_device_removed does not need UDEV
src/input/evdev/SDL_evdev.c
--- a/src/input/evdev/SDL_evdev.c	Sat Sep 28 14:07:17 2013 -0700
+++ b/src/input/evdev/SDL_evdev.c	Sat Sep 28 19:17:27 2013 -0300
@@ -55,9 +55,9 @@
 
 static SDL_Scancode SDL_EVDEV_translate_keycode(int keycode);
 static void SDL_EVDEV_sync_device(SDL_evdevlist_item *item);
+static int SDL_EVDEV_device_removed(const char *devpath);
 
 #if SDL_USE_LIBUDEV
-static int SDL_EVDEV_device_removed(const char *devpath);
 static int SDL_EVDEV_device_added(const SDL_UDEV_deviceclass devclass, const char *devpath);
 void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, SDL_UDEV_deviceclass udev_class, const char *devpath);
 #endif /* SDL_USE_LIBUDEV */
@@ -615,7 +615,7 @@
     
     return _this->numdevices++;
 }
-
+#endif /* SDL_USE_LIBUDEV */
 
 static int
 SDL_EVDEV_device_removed(const char *devpath)
@@ -646,7 +646,7 @@
 
     return -1;
 }
-#endif /* SDL_USE_LIBUDEV */
+
 
 #endif /* SDL_INPUT_LINUXEV */