diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ext/readline/readline.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Thu Apr 17 11:10:59 2003 WATANABE Hirofumi <eban@ruby-lang.org> + + * ext/readline/readline.c: add the defined operator for bcc32. + Wed Apr 16 00:14:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> * misc/ruby-mode.el (ruby-special-char-p): should test at the diff --git a/ext/readline/readline.c b/ext/readline/readline.c index bc98df92f..8446a8cb4 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -53,10 +53,10 @@ readline_readline(argc, argv, self) buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt, &status); if (status) { -#if READLINE_40_OR_LATER +#if defined READLINE_40_OR_LATER /* restore terminal mode and signal handler*/ rl_cleanup_after_signal(); -#elif READLINE_21_OR_LATER +#elif defined READLINE_21_OR_LATER /* restore terminal mode */ (*rl_deprep_term_function)(); #else @@ -722,7 +722,7 @@ Init_readline() rb_define_singleton_method(ucomp, "call", username_completion_proc_call, 1); rb_define_const(mReadline, "USERNAME_COMPLETION_PROC", ucomp); -#if READLINE_21_OR_LATER +#if defined READLINE_21_OR_LATER rb_define_const(mReadline, "VERSION", rb_str_new2(rl_library_version)); #else rb_define_const(mReadline, "VERSION", |
