2024-03-28 22:40:08 +01:00
|
|
|
--- ./src/lib/libcurses.c.orig 2012-10-26 16:21:38.000000000 -0500
|
|
|
|
+++ ./src/lib/libcurses.c 2024-03-27 14:48:08.842064533 -0500
|
2009-08-26 17:00:38 +02:00
|
|
|
@@ -41,7 +41,12 @@
|
|
|
|
#endif /* HAVE_NCURSES_CURSES_H */
|
|
|
|
#endif /* HAVE_NCURSES_H */
|
|
|
|
|
|
|
|
-#define GET(win) ((win) ? wgetch(win) : getch())
|
|
|
|
+/* If win != NULL, it must have been created by ncurses anyway.
|
|
|
|
+ Avoid circular library dependencies. */
|
|
|
|
+#pragma weak wgetch
|
|
|
|
+#pragma weak stdscr
|
|
|
|
+
|
|
|
|
+#define GET(win) ((win && wgetch) ? wgetch(win) : getch())
|
|
|
|
|
|
|
|
int Gpm_Wgetch(WINDOW *win)
|
|
|
|
{
|