[Python-checkins] r78148 - python/trunk/Modules/readline.c

ronald.oussoren python-checkins at python.org
Thu Feb 11 14:13:08 CET 2010


Author: ronald.oussoren
Date: Thu Feb 11 14:13:08 2010
New Revision: 78148

Log:
Add guard around the prototype for completion_matches to enable 
compilition with libedit on OSX 10.5


Modified:
   python/trunk/Modules/readline.c

Modified: python/trunk/Modules/readline.c
==============================================================================
--- python/trunk/Modules/readline.c	(original)
+++ python/trunk/Modules/readline.c	Thu Feb 11 14:13:08 2010
@@ -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__
 /*


More information about the Python-checkins mailing list