From 91398ceb3427b730995357e9d120539fb9bb7461 Mon Sep 17 00:00:00 2001 From: Jakub Pawlo Date: Wed, 27 Jan 2016 09:23:12 +0100 Subject: [PATCH] Prevent mangling of symbols when linking with C++ Signed-off-by: Jakub Pawlo Signed-off-by: Joachim Nilsson --- include/editline.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/editline.h b/include/editline.h index 892cca3..cf5f56f 100644 --- a/include/editline.h +++ b/include/editline.h @@ -29,6 +29,10 @@ #define ISMETA(x) ((x) & 0x80) #define UNMETA(x) ((x) & 0x7F) +#ifdef __cplusplus +extern "C" { +#endif + /* Command status codes. */ typedef enum { CSdone = 0, /* OK */ @@ -100,4 +104,8 @@ void rl_deprep_terminal(void); int rl_getc(void); +#ifdef __cplusplus +} +#endif + #endif /* __EDITLINE_H__ */