Ensure rl_message() gets prototype.
(cherry picked from commit fd126553d4)
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
#elif defined(HAVE_READLINE_READLINE_H)
|
||||
/* Prevent deprecated functions being declared. */
|
||||
#define _FUNCTION_DEF 1
|
||||
/* Ensure rl_message() gets prototype. */
|
||||
#define USE_VARARGS 1
|
||||
#define PREFER_STDARG 1
|
||||
#include <readline/readline.h>
|
||||
#if defined(HAVE_READLINE_HISTORY_H)
|
||||
#include <readline/history.h>
|
||||
|
||||
@@ -95,6 +95,9 @@
|
||||
#else /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
|
||||
/* Prevent deprecated functions being declared. */
|
||||
#define _FUNCTION_DEF 1
|
||||
/* Ensure rl_message() gets prototype. */
|
||||
#define USE_VARARGS 1
|
||||
#define PREFER_STDARG 1
|
||||
#include <readline/history.h>
|
||||
#include <readline/readline.h>
|
||||
#endif /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
|
||||
|
||||
Reference in New Issue
Block a user