changeset_r45240.diff 538 B

12345678910111213141516171819202122
  1. --- a/ext/readline/extconf.rb (revision 45239)
  2. +++ b/ext/readline/extconf.rb (revision 45240)
  3. @@ -19,6 +19,10 @@
  4. return super(func, headers)
  5. end
  6. +def readline.have_type(type)
  7. + return super(type, headers)
  8. +end
  9. +
  10. dir_config('curses')
  11. dir_config('ncurses')
  12. dir_config('termcap')
  13. @@ -94,4 +98,8 @@
  14. readline.have_func("rl_redisplay")
  15. readline.have_func("rl_insert_text")
  16. readline.have_func("rl_delete_text")
  17. +unless readline.have_type("rl_hook_func_t")
  18. + $DEFS << "-Drl_hook_func_t=Function"
  19. +end
  20. +
  21. create_makefile("readline")