winhacks.h 351 B

1234567891011121314151617181920
  1. #ifndef BFG_WINHACKS_H
  2. #define BFG_WINHACKS_H
  3. #include <winsock2.h>
  4. // wincon.h contains a KEY_EVENT that conflicts with ncurses
  5. #include <wincon.h>
  6. #ifdef KEY_EVENT
  7. # undef KEY_EVENT
  8. #endif
  9. // wincon.h contains a MOUSE_MOVED that conflicts with curses
  10. #ifdef MOUSE_MOVED
  11. # undef MOUSE_MOVED
  12. #endif
  13. #ifdef interface
  14. #undef interface
  15. #endif
  16. #endif