From 7b3b5f173bb17efa52c541cceb4c0d0ded977dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 24 Mar 2014 23:40:39 +0100 Subject: [PATCH] Make libinput.h safe to be included from C++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ã…dahl --- src/libinput.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libinput.h b/src/libinput.h index dab24b73..5599a6aa 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 #include #include @@ -1211,4 +1215,8 @@ int libinput_device_has_capability(struct libinput_device *device, enum libinput_device_capability capability); +#ifdef __cplusplus +} +#endif + #endif /* LIBINPUT_H */