* 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:
parent
10a0dea1f5
commit
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>
|
Sat Sep 2 23:59:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (Init_String): undef Symbol#new.
|
* string.c (Init_String): undef Symbol#new.
|
||||||
|
@ -28,6 +28,10 @@
|
|||||||
# endif
|
# endif
|
||||||
# include <curses_colr/curses.h>
|
# include <curses_colr/curses.h>
|
||||||
#else
|
#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>
|
# include <curses.h>
|
||||||
# if defined(__bsdi__) || defined(__NetBSD__) || defined(__APPLE__)
|
# if defined(__bsdi__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||||
# if !defined(_maxx)
|
# if !defined(_maxx)
|
||||||
@ -1173,7 +1177,6 @@ window_color_set(VALUE obj, VALUE col)
|
|||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
res = wcolor_set(winp->window, NUM2INT(col), NULL);
|
res = wcolor_set(winp->window, NUM2INT(col), NULL);
|
||||||
return (res == OK) ? Qtrue : Qfalse;
|
return (res == OK) ? Qtrue : Qfalse;
|
||||||
return Qfalse;
|
|
||||||
}
|
}
|
||||||
#endif /* defined(USE_COLOR) && defined(HAVE_WCOLOR_SET) */
|
#endif /* defined(USE_COLOR) && defined(HAVE_WCOLOR_SET) */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user