Fix -Wundef warnings due to use of unguarded HAVE_LINUX_INPUT_H
This commit is contained in:
1 parent
a27dd9c418
commit
9be69b9365
3 files changed
+3
-3
No files matched your search
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "SDL_evdev_capabilities.h"
|
#include "SDL_evdev_capabilities.h"
|
||||||
|
|
||||||
#if HAVE_LINUX_INPUT_H
|
#ifdef HAVE_LINUX_INPUT_H
|
||||||
|
|
||||||
/* missing defines in older Linux kernel headers */
|
/* missing defines in older Linux kernel headers */
|
||||||
#ifndef BTN_TRIGGER_HAPPY
|
#ifndef BTN_TRIGGER_HAPPY
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#ifndef SDL_evdev_capabilities_h_
|
#ifndef SDL_evdev_capabilities_h_
|
||||||
#define SDL_evdev_capabilities_h_
|
#define SDL_evdev_capabilities_h_
|
||||||
|
|
||||||
#if HAVE_LINUX_INPUT_H
|
#ifdef HAVE_LINUX_INPUT_H
|
||||||
|
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#ifndef SDL_udev_h_
|
#ifndef SDL_udev_h_
|
||||||
#define 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
|
#ifndef SDL_USE_LIBUDEV
|
||||||
#define SDL_USE_LIBUDEV 1
|
#define SDL_USE_LIBUDEV 1
|
||||||
|
|||||||
Reference in new issue
Block a user