From 9fa188fa95b789cbbdc6fc703cd685feb926ce95 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 15 Jan 2004 19:37:45 +0000 Subject: [PATCH] Provide an escape to our "savestring" compatibility with ancient readline versions madness. Define 'RL_NO_COMPAT' and be worry free. --- contrib/libreadline/readline.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/libreadline/readline.h b/contrib/libreadline/readline.h index d42510ddb1a8..c142bb464402 100644 --- a/contrib/libreadline/readline.h +++ b/contrib/libreadline/readline.h @@ -430,7 +430,7 @@ extern char *rl_filename_completion_function PARAMS((const char *, int)); extern int rl_completion_mode PARAMS((rl_command_func_t *)); -#if 1 +#if !defined(RL_NO_COMPAT) /* Backwards compatibility (compat.c). These will go away sometime. */ extern void free_undo_list PARAMS((void)); extern int maybe_save_line PARAMS((void)); @@ -793,10 +793,12 @@ struct readline_state { extern int rl_save_state PARAMS((struct readline_state *)); extern int rl_restore_state PARAMS((struct readline_state *)); +#if !defined(RL_NO_COMPAT) #if !defined (savestring) #define savestring rl_savestring extern char *savestring __P((char *)); /* XXX backwards compatibility */ #endif +#endif #ifdef __cplusplus }