Compile properly when IOCCSH_USE_READLINE is not defined.
This commit is contained in:
@@ -16,23 +16,22 @@
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
|
||||
char *epics_readline (const char *prompt)
|
||||
{
|
||||
return readline (prompt);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/*
|
||||
* Fake versions of some readline/history routines
|
||||
*/
|
||||
#define readline(p) do { } while(0)
|
||||
#define stifle_history(n) do { } while(0)
|
||||
#define add_history(l) do { } while(0)
|
||||
#define rl_bind_key(c,f) do { } while(0)
|
||||
|
||||
#endif
|
||||
|
||||
char *epics_readline (const char *prompt)
|
||||
{
|
||||
return readline (prompt);
|
||||
}
|
||||
|
||||
void epics_stifle_history (int n)
|
||||
{
|
||||
stifle_history (n);
|
||||
|
||||
Reference in New Issue
Block a user