Signed-off-by: Jonas Ådahl <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to