Resolve KEY_EVENT conflict between Windows and ncurses.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:32:23 +0000 (13:32 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:34:19 +0000 (13:34 +0100)
commitb2a6381ab28dbae4bf976627afccbf6c2fcb0625
treef22bcda03f11d1a3c4929d12c97981e213771475
parent5217c16db4babd64580c2fd7aa36180bb9bd838c
Resolve KEY_EVENT conflict between Windows and ncurses.

This fixes the following compiler warning when building for Windows:

In file included from top.c:24:0:
/usr/local/mingw/ncurses/include/curses.h:1478:0: error: "KEY_EVENT" redefined [-Werror]
 #define KEY_EVENT 0633  /* We were interrupted by an event */
 ^
In file included from /usr/share/mingw-w64/include/windows.h:74:0,
                 from /usr/share/mingw-w64/include/winsock2.h:23,
                 from have.h:46,
                 from system.h:26,
                 from top.c:20:
/usr/share/mingw-w64/include/wincon.h:101:0: note: this is the location of the previous definition
 #define KEY_EVENT 0x1
 ^
src/top.c