Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b104ab

Browse files
committed
Issue #20374: merge
2 parents e694c97 + 7b9ddea commit 4b104ab

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Modules/readline.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,13 @@ on_hook(PyObject *func)
815815
return result;
816816
}
817817

818+
818819
static int
820+
#if defined(_RL_FUNCTION_TYPEDEF)
819821
on_startup_hook(void)
822+
#else
823+
on_startup_hook()
824+
#endif
820825
{
821826
int r;
822827
#ifdef WITH_THREAD
@@ -831,7 +836,11 @@ on_startup_hook(void)
831836

832837
#ifdef HAVE_RL_PRE_INPUT_HOOK
833838
static int
839+
#if defined(_RL_FUNCTION_TYPEDEF)
834840
on_pre_input_hook(void)
841+
#else
842+
on_pre_input_hook()
843+
#endif
835844
{
836845
int r;
837846
#ifdef WITH_THREAD

0 commit comments

Comments
 (0)