]> granicus.if.org Git - python/commitdiff
Add guard around the prototype for completion_matches to enable
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Feb 2010 13:13:08 +0000 (13:13 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Feb 2010 13:13:08 +0000 (13:13 +0000)
compilition with libedit on OSX 10.5

Modules/readline.c

index 2db6cfb0e35fd867b2aae440426158ac9df74c16..bd256ced8524a3e8b62c23d7cd0dccd905f2b513 100644 (file)
 #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__
 /*