mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 18:00:18 +01:00
Make libinput.h safe to be included from C++
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
79827d2422
commit
7b3b5f173b
1 changed files with 8 additions and 0 deletions
|
|
@ -23,6 +23,10 @@
|
|||
#ifndef LIBINPUT_H
|
||||
#define LIBINPUT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <libudev.h>
|
||||
|
|
@ -1211,4 +1215,8 @@ int
|
|||
libinput_device_has_capability(struct libinput_device *device,
|
||||
enum libinput_device_capability capability);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBINPUT_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue