mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 21:01:12 +08:00
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:
parent
3dbeaa0637
commit
91398ceb34
@ -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__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user