diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-12-20 16:49:53 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-12-22 12:31:28 +0100 |
| commit | 0e2ab3b5940e70493aaabdfe5e8da1c75db4db72 (patch) | |
| tree | a253d231d73f06efd8c47cbb7dec51a0291de37b /include/mtdev-mapping.h | |
| parent | db1fdc76ceb5d1bbe32c193e13eb4357da5d0b81 (diff) | |
Allow use in c++ applications
Reported-by: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev-mapping.h')
| -rw-r--r-- | include/mtdev-mapping.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
| 31 | #ifndef _MTDEV_MAPPING_H | 31 | #ifndef _MTDEV_MAPPING_H |
| 32 | #define _MTDEV_MAPPING_H | 32 | #define _MTDEV_MAPPING_H |
| 33 | 33 | ||
| 34 | #ifdef __cplusplus | ||
| 35 | extern "C" { | ||
| 36 | #endif | ||
| 37 | |||
| 34 | #include <mtdev.h> | 38 | #include <mtdev.h> |
| 35 | 39 | ||
| 36 | #define MTDEV_TOUCH_MAJOR 0 | 40 | #define MTDEV_TOUCH_MAJOR 0 |
| @@ -76,4 +80,8 @@ static inline unsigned int mtdev_mt2abs(unsigned int mtcode) | |||
| 76 | return mtdev_map_mt2abs[mtcode]; | 80 | return mtdev_map_mt2abs[mtcode]; |
| 77 | } | 81 | } |
| 78 | 82 | ||
| 83 | #ifdef __cplusplus | ||
| 84 | } | ||
| 85 | #endif | ||
| 86 | |||
| 79 | #endif | 87 | #endif |
