diff options
author | Guido van Rossum <guido@python.org> | 2001-01-10 21:03:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-10 21:03:32 (GMT) |
commit | 5a53019b0d4780b270c0c8027e0e66b7183fb661 (patch) | |
tree | 301ea469ac53ab9d55871b315ae993b0fd25a7dd /Modules/readline.c | |
parent | 4c3f57cf05c9d7ea5b1ff681703b95ce034f16c3 (diff) | |
download | cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.zip cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.tar.gz cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.tar.bz2 |
Part of SF patch #102409 by jlt63 to support building these modules
under CYGWIN as shared libraries (DLLs).
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index cf0b064..8bb0239 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -27,6 +27,9 @@ #else #include <readline/readline.h> /* You may need to add an -I option to Setup */ +#ifdef __CYGWIN__ +#include <readline/history.h> +#else /* !__CYGWIN__ */ extern int rl_parse_and_bind(char *); extern int rl_read_init_file(char *); extern int rl_insert_text(char *); @@ -38,11 +41,12 @@ extern int read_history(char *); extern int write_history(char *); extern int history_truncate_file(char *, int); extern Function *rl_event_hook; +#endif /* !__CYGWIN__ */ #endif /* Pointers needed from outside (but not declared in a header file). */ -extern int (*PyOS_InputHook)(void); -extern char *(*PyOS_ReadlineFunctionPointer)(char *); +extern DL_IMPORT(int) (*PyOS_InputHook)(void); +extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *); /* Exported function to send one line to readline's init file parser */ |