Browse Source

Make sure KEY_EVENT from wincon is ignored (it conflicts with ncurses)

Luke Dashjr 11 years ago
parent
commit
dc0e84873b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      winhacks.h

+ 5 - 1
winhacks.h

@@ -3,8 +3,12 @@
 
 
 #include <winsock2.h>
 #include <winsock2.h>
 
 
-// wincon.h contains a MOUSE_MOVED that conflicts with curses
+// wincon.h contains a KEY_EVENT that conflicts with ncurses
 #include <wincon.h>
 #include <wincon.h>
+#ifdef KEY_EVENT
+#	undef KEY_EVENT
+#endif
+// wincon.h contains a MOUSE_MOVED that conflicts with curses
 #ifdef MOUSE_MOVED
 #ifdef MOUSE_MOVED
 #	undef MOUSE_MOVED
 #	undef MOUSE_MOVED
 #endif
 #endif