From: Ronald Oussoren Date: Thu, 11 Feb 2010 13:13:08 +0000 (+0000) Subject: Add guard around the prototype for completion_matches to enable X-Git-Tag: v2.7a4~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=333fca9b3ec7204f0660b45694adafa744336d5f;p=python Add guard around the prototype for completion_matches to enable compilition with libedit on OSX 10.5 --- diff --git a/Modules/readline.c b/Modules/readline.c index 2db6cfb0e3..bd256ced85 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -38,9 +38,12 @@ #if defined(_RL_FUNCTION_TYPEDEF) extern char **completion_matches(char *, rl_compentry_func_t *); #else + +#if !defined(__APPLE__) extern char **completion_matches(char *, CPFunction *); #endif #endif +#endif #ifdef __APPLE__ /*