diff options
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r-- | ext/readline/readline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 8446a8cb46..b72da75e7f 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -729,8 +729,14 @@ Init_readline() rb_str_new2("2.0 or before version")); #endif +#if defined READLINE_42_OR_LATER + rl_attempted_completion_function + = (rl_completion_func_t *)readline_attempted_completion_function; + rl_event_hook = (rl_hook_func_t *)readline_event; +#else rl_attempted_completion_function = (CPPFunction *) readline_attempted_completion_function; rl_event_hook = readline_event; +#endif rl_clear_signals(); } |