[PATCH libinput 7/8] Make libinput.h safe to be included from C++
Jonas Ådahl
jadahl at gmail.com
Tue Mar 25 13:45:58 PDT 2014
Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
src/libinput.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/libinput.h b/src/libinput.h
index dab24b7..5599a6a 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -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 */
--
1.8.3.2
More information about the wayland-devel
mailing list