Fix compilation with current readline

"Function *" was deprecated in readline 4.2 and removed in readline 6.3.
And at some point it evidently also became required to include
<readline/history.h> to use the history functions like "add_history".
This commit is contained in:
Ryan Schmidt 2022-11-18 00:32:54 -06:00 committed by GitHub
parent 022d4cffe9
commit 784e8e7098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@
#include <bitset>
#include <readline/readline.h>
#include <readline/history.h>
#include "loader.h"
@ -1225,7 +1226,7 @@ namespace {
{
rl_readline_name = (char *)"mpw";
rl_attempted_completion_function = mpw_attempted_completion_function;
rl_completion_entry_function = (Function *)mpw_completion_entry_function;
rl_completion_entry_function = (rl_compentry_func_t *)mpw_completion_entry_function;
}
}