25 |
|
#include <signal.h> |
26 |
|
#include <ctype.h> |
27 |
|
|
28 |
< |
#ifdef HAVE_READLINE_READLINE_H |
28 |
> |
#if defined(HAVE_READLINE_H) |
29 |
> |
extern "C" { |
30 |
> |
#include <readline.h> |
31 |
> |
} |
32 |
> |
#elif defined(HAVE_READLINE_READLINE_H) |
33 |
|
extern "C" { |
34 |
|
#include <readline/readline.h> |
35 |
|
} |
36 |
|
#endif |
37 |
|
|
38 |
< |
#ifdef HAVE_READLINE_HISTORY_H |
38 |
> |
#if defined(HAVE_HISTORY_H) |
39 |
> |
extern "C" { |
40 |
> |
#include <history.h> |
41 |
> |
} |
42 |
> |
#elif defined(HAVE_READLINE_HISTORY_H) |
43 |
|
extern "C" { |
44 |
|
#include <readline/history.h> |
45 |
|
} |
1170 |
|
// Print banner |
1171 |
|
if (interactive) |
1172 |
|
fprintf(monerr, "\n *** mon V" VERSION " by Christian Bauer and Marc Hellwig ***\n" |
1173 |
< |
" *** Press 'h' for help ***\n\n"); |
1173 |
> |
" *** Press 'h' for help ***\n\n"); |
1174 |
|
} |
1175 |
|
|
1176 |
|
init_abort(); |