From 0e2ab3b5940e70493aaabdfe5e8da1c75db4db72 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 20 Dec 2010 16:49:53 +0100 Subject: Allow use in c++ applications Reported-by: Armando Visconti Signed-off-by: Henrik Rydberg --- include/mtdev-mapping.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/mtdev-mapping.h') diff --git a/include/mtdev-mapping.h b/include/mtdev-mapping.h index cb4c326..0e47970 100644 --- a/include/mtdev-mapping.h +++ b/include/mtdev-mapping.h @@ -31,6 +31,10 @@ #ifndef _MTDEV_MAPPING_H #define _MTDEV_MAPPING_H +#ifdef __cplusplus +extern "C" { +#endif + #include #define MTDEV_TOUCH_MAJOR 0 @@ -76,4 +80,8 @@ static inline unsigned int mtdev_mt2abs(unsigned int mtcode) return mtdev_map_mt2abs[mtcode]; } +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3