зеркало из https://github.com/github/ruby.git
* ext/curses/curses.c: define _XOPEN_SOURCE_EXTENDED on HP-UX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
10a0dea1f5
Коммит
b23b5ed620
|
@ -1,3 +1,7 @@
|
|||
Sun Sep 3 04:03:06 2006 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/curses/curses.c: define _XOPEN_SOURCE_EXTENDED on HP-UX.
|
||||
|
||||
Sat Sep 2 23:59:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (Init_String): undef Symbol#new.
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
# endif
|
||||
# include <curses_colr/curses.h>
|
||||
#else
|
||||
# if defined(__hpux) && !defined(_XOPEN_SOURCE_EXTENDED)
|
||||
/* HP-UX needs _XOPEN_SOURCE_EXTENDED to use getmaxy, etc. */
|
||||
# define _XOPEN_SOURCE_EXTENDED
|
||||
# endif
|
||||
# include <curses.h>
|
||||
# if defined(__bsdi__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
# if !defined(_maxx)
|
||||
|
@ -1173,7 +1177,6 @@ window_color_set(VALUE obj, VALUE col)
|
|||
GetWINDOW(obj, winp);
|
||||
res = wcolor_set(winp->window, NUM2INT(col), NULL);
|
||||
return (res == OK) ? Qtrue : Qfalse;
|
||||
return Qfalse;
|
||||
}
|
||||
#endif /* defined(USE_COLOR) && defined(HAVE_WCOLOR_SET) */
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче