--- Modules/readline.c.orig	2017-09-19 17:32:02
+++ Modules/readline.c	2023-09-15 14:46:41
@@ -268,12 +268,8 @@ set_completion_display_matches_hook(PyObject *self, Py
        default completion display. */
     rl_completion_display_matches_hook =
         completion_display_matches_hook ?
-#if defined(_RL_FUNCTION_TYPEDEF)
         (rl_compdisp_func_t *)on_completion_display_matches_hook : 0;
-#else
-        (VFunction *)on_completion_display_matches_hook : 0;
 #endif
-#endif
     return result;
 
 }
