mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
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:
parent
022d4cffe9
commit
784e8e7098
@ -43,6 +43,7 @@
|
|||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
|
||||||
#include <readline/readline.h>
|
#include <readline/readline.h>
|
||||||
|
#include <readline/history.h>
|
||||||
|
|
||||||
|
|
||||||
#include "loader.h"
|
#include "loader.h"
|
||||||
@ -1225,7 +1226,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
rl_readline_name = (char *)"mpw";
|
rl_readline_name = (char *)"mpw";
|
||||||
rl_attempted_completion_function = mpw_attempted_completion_function;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user