mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 10:17:54 +00:00
Fix -Wundef warnings due to use of unguarded HAVE_LINUX_INPUT_H
This commit is contained in:
parent
a27dd9c418
commit
9be69b9365
3 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "SDL_evdev_capabilities.h"
|
||||
|
||||
#if HAVE_LINUX_INPUT_H
|
||||
#ifdef HAVE_LINUX_INPUT_H
|
||||
|
||||
/* missing defines in older Linux kernel headers */
|
||||
#ifndef BTN_TRIGGER_HAPPY
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef SDL_evdev_capabilities_h_
|
||||
#define SDL_evdev_capabilities_h_
|
||||
|
||||
#if HAVE_LINUX_INPUT_H
|
||||
#ifdef HAVE_LINUX_INPUT_H
|
||||
|
||||
#include <linux/input.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef SDL_udev_h_
|
||||
#define SDL_udev_h_
|
||||
|
||||
#if HAVE_LIBUDEV_H && HAVE_LINUX_INPUT_H
|
||||
#if HAVE_LIBUDEV_H && defined(HAVE_LINUX_INPUT_H)
|
||||
|
||||
#ifndef SDL_USE_LIBUDEV
|
||||
#define SDL_USE_LIBUDEV 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue