[PATCH libevdev 10/13] Add C++ header guards
Peter Hutterer
peter.hutterer at who-t.net
Sun Aug 25 16:27:30 PDT 2013
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
libevdev/libevdev.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index 713d4c2..53d9664 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -23,6 +23,10 @@
#ifndef LIBEVDEV_H
#define LIBEVDEV_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <linux/input.h>
#include <stdarg.h>
@@ -1221,4 +1225,9 @@ int libevdev_get_repeat(struct libevdev *dev, int *delay, int *period);
#endif
/**************************************/
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBEVDEV_H */
--
1.8.2.1
More information about the Input-tools
mailing list