1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| | --- ncurses-6.0.orig/include/curses.h.in 2014-08-09 22:39:44.000000000 +0200
+++ ncurses-6.0/include/curses.h.in 2016-04-09 20:47:14.266679000 +0200
@@ -1420,3 +1420,15 @@
#define KEY_BREAK 0401 /* Break key (unreliable) */
#define KEY_SRESET 0530 /* Soft (partial) reset (unreliable) */
#define KEY_RESET 0531 /* Reset or hard reset (unreliable) */
+
+#ifdef __MINGW32__
+/* Windows API headers, included e.g. by serial.h, define MOUSE_MOVED,
+ and so does PDCurses's curses.h, but for an entirely different
+ purpose. Since we don't use the Windows semantics of MOUSE_MOVED
+ anywhere, avoid compiler warnings by undefining MOUSE_MOVED before
+ including curses.h. */
+#undef MOUSE_MOVED
+/* Likewise, KEY_EVENT is defined by ncurses.h, but also by Windows
+ API headers. */
+#undef KEY_EVENT
+#endif
|