Skip to content

Commit

Permalink
evdev: Fix build with libudev and joystick subsystem disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Sep 27, 2022
1 parent 2cc9176 commit 71fb91f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/linux/SDL_evdev_capabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#ifndef SDL_evdev_capabilities_h_
#define SDL_evdev_capabilities_h_

#if HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX)

#include <linux/input.h>

/* A device can be any combination of these classes */
Expand All @@ -53,8 +51,6 @@ extern int SDL_EVDEV_GuessDeviceClass(unsigned long bitmask_ev[NBITS(EV_MAX)],
unsigned long bitmask_key[NBITS(KEY_MAX)],
unsigned long bitmask_rel[NBITS(REL_MAX)]);

#endif /* HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX) */

#endif /* SDL_evdev_capabilities_h_ */

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 71fb91f

Please sign in to comment.