mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-06 12:38:02 +02:00
Add extern C guards to libevdev-uinput.h
Reported-by: Stanisław Halik <sthalik@misaki.pl> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c5c7c914af
commit
c365d22b70
1 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,10 @@
|
||||||
#ifndef LIBEVDEV_UINPUT_H
|
#ifndef LIBEVDEV_UINPUT_H
|
||||||
#define LIBEVDEV_UINPUT_H
|
#define LIBEVDEV_UINPUT_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libevdev/libevdev.h>
|
#include <libevdev/libevdev.h>
|
||||||
|
|
||||||
struct libevdev_uinput;
|
struct libevdev_uinput;
|
||||||
|
|
@ -226,5 +230,8 @@ int libevdev_uinput_write_event(const struct libevdev_uinput *uinput_dev,
|
||||||
unsigned int type,
|
unsigned int type,
|
||||||
unsigned int code,
|
unsigned int code,
|
||||||
int value);
|
int value);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* LIBEVDEV_UINPUT_H */
|
#endif /* LIBEVDEV_UINPUT_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue