]> granicus.if.org Git - python/commitdiff
Issue #20374: Avoid compiler warnings when compiling readline with libedit.
authorNed Deily <nad@acm.org>
Thu, 6 Feb 2014 00:53:10 +0000 (16:53 -0800)
committerNed Deily <nad@acm.org>
Thu, 6 Feb 2014 00:53:10 +0000 (16:53 -0800)
Modules/readline.c

index 4ee17a91cd977dd96ffb3adda7cbe92da0151032..ae3e14365f7c1b2256b0f07d7bbe9ea5788f99c6 100644 (file)
@@ -773,15 +773,24 @@ on_hook(PyObject *func)
     return result;
 }
 
+
 static int
+#if defined(_RL_FUNCTION_TYPEDEF)
 on_startup_hook(void)
+#else
+on_startup_hook()
+#endif
 {
     return on_hook(startup_hook);
 }
 
 #ifdef HAVE_RL_PRE_INPUT_HOOK
 static int
+#if defined(_RL_FUNCTION_TYPEDEF)
 on_pre_input_hook(void)
+#else
+on_pre_input_hook()
+#endif
 {
     return on_hook(pre_input_hook);
 }