Skip to content

Commit

Permalink
Applied the patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
genki authored and rlane committed Jan 1, 2010
1 parent 392f469 commit 3f07e67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
raise "ncurses header file not found"
end

if have_library("ncurses", "wmove")
curses_lib = "ncurses"
if have_library("ncursesw", "wmove")
curses_lib = "ncursesw"
elsif have_library("pdcurses", "wmove")
curses_lib = "pdcurses"
else
Expand Down Expand Up @@ -123,11 +123,11 @@

puts "checking for the panel library..."
if have_header("panel.h")
have_library("panel", "panel_hidden")
have_library("panelw", "panel_hidden")
end
puts "checking for the form library..."
if have_header("form.h")
have_library("form", "new_form")
have_library("formw", "new_form")
end
puts "checking for the menu library..."
if have_header("menu.h")
Expand Down
2 changes: 2 additions & 0 deletions ncurses_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2726,6 +2726,8 @@ static void init_safe_functions(void)
}
void Init_ncurses_bin(void)
{
setlocale(LC_ALL, "");

mNcurses = rb_define_module("Ncurses");
eNcurses = rb_define_class_under(mNcurses, "Exception", rb_eRuntimeError);
rb_iv_set(mNcurses, "@windows_hash", rb_hash_new());
Expand Down
1 change: 1 addition & 0 deletions ncurses_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ int close(int);
# endif
#endif

#include <locale.h>
#include <ruby.h>

extern VALUE mNcurses; /* module Ncurses */
Expand Down

0 comments on commit 3f07e67

Please sign in to comment.