Prevent mangling of symbols when linking with C++

Signed-off-by: Jakub Pawlo <jakubpawlo@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Jakub Pawlo 2016-01-27 09:23:12 +01:00 committed by Joachim Nilsson
parent 3dbeaa0637
commit 91398ceb34

View File

@ -29,6 +29,10 @@
#define ISMETA(x) ((x) & 0x80) #define ISMETA(x) ((x) & 0x80)
#define UNMETA(x) ((x) & 0x7F) #define UNMETA(x) ((x) & 0x7F)
#ifdef __cplusplus
extern "C" {
#endif
/* Command status codes. */ /* Command status codes. */
typedef enum { typedef enum {
CSdone = 0, /* OK */ CSdone = 0, /* OK */
@ -100,4 +104,8 @@ void rl_deprep_terminal(void);
int rl_getc(void); int rl_getc(void);
#ifdef __cplusplus
}
#endif
#endif /* __EDITLINE_H__ */ #endif /* __EDITLINE_H__ */