Fix: SDL_EVDEV_device_removed does not need UDEV
authorGabriel Jacobo <gabomdq@gmail.com>
Sat, 28 Sep 2013 19:17:27 -0300
changeset 77670d425d6327d8
parent 7766 84b154b1ed71
child 7768 dd5a807cd5ec
Fix: SDL_EVDEV_device_removed does not need UDEV
src/input/evdev/SDL_evdev.c
     1.1 --- a/src/input/evdev/SDL_evdev.c	Sat Sep 28 14:07:17 2013 -0700
     1.2 +++ b/src/input/evdev/SDL_evdev.c	Sat Sep 28 19:17:27 2013 -0300
     1.3 @@ -55,9 +55,9 @@
     1.4  
     1.5  static SDL_Scancode SDL_EVDEV_translate_keycode(int keycode);
     1.6  static void SDL_EVDEV_sync_device(SDL_evdevlist_item *item);
     1.7 +static int SDL_EVDEV_device_removed(const char *devpath);
     1.8  
     1.9  #if SDL_USE_LIBUDEV
    1.10 -static int SDL_EVDEV_device_removed(const char *devpath);
    1.11  static int SDL_EVDEV_device_added(const SDL_UDEV_deviceclass devclass, const char *devpath);
    1.12  void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, SDL_UDEV_deviceclass udev_class, const char *devpath);
    1.13  #endif /* SDL_USE_LIBUDEV */
    1.14 @@ -615,7 +615,7 @@
    1.15      
    1.16      return _this->numdevices++;
    1.17  }
    1.18 -
    1.19 +#endif /* SDL_USE_LIBUDEV */
    1.20  
    1.21  static int
    1.22  SDL_EVDEV_device_removed(const char *devpath)
    1.23 @@ -646,7 +646,7 @@
    1.24  
    1.25      return -1;
    1.26  }
    1.27 -#endif /* SDL_USE_LIBUDEV */
    1.28 +
    1.29  
    1.30  #endif /* SDL_INPUT_LINUXEV */
    1.31