src/commands.c: use conio.h / kbhit() for OS/2 builds, as well.

master
sezero 9 years ago
parent 6ea590909f
commit c76c2d5eef
  1. 4
      src/commands.c

@ -7,7 +7,7 @@
*/
#include <unistd.h>
#ifdef WIN32
#if defined(_WIN32) || defined(__OS2__)
#include <conio.h>
#endif
#include <xmp.h>
@ -65,7 +65,7 @@ static int read_key(void)
if (stdin_ready_for_reading())
#endif
ret = read(0, &key, 1);
#elif defined WIN32
#elif defined(_WIN32) || defined(__OS2__)
if (kbhit()) {
key = getch();
ret = 1;

Loading…
Cancel
Save