Make libinput.h safe to be included from C++

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2014-03-24 23:40:39 +01:00
parent 79827d2422
commit 7b3b5f173b

View file

@ -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 */