diff options
Diffstat (limited to 'plpftp/rlcrap.h')
-rw-r--r-- | plpftp/rlcrap.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plpftp/rlcrap.h b/plpftp/rlcrap.h new file mode 100644 index 0000000..92df659 --- /dev/null +++ b/plpftp/rlcrap.h @@ -0,0 +1,21 @@ +/* + * Woraround for crappy readline.h which defines wrong prototypes. + */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#if HAVE_LIBREADLINE +#include <readline/readline.h> +#ifdef __cplusplus +extern "C" { +#endif +extern CPFunction *cmdgen_ptr; +extern CPFunction *fnmgen_ptr; + +typedef char *(*CorrectFunProto)(char *, int); + +extern void rlcrap_setpointers(CorrectFunProto, CorrectFunProto); +#ifdef __cplusplus +} +#endif +#endif |