From c76c2d5eef968a6b9e8a109eb9ec08de6ebdb245 Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 3 Dec 2016 01:22:10 +0300 Subject: [PATCH] src/commands.c: use conio.h / kbhit() for OS/2 builds, as well. --- src/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.c b/src/commands.c index fc10926..889aeef 100644 --- a/src/commands.c +++ b/src/commands.c @@ -7,7 +7,7 @@ */ #include -#ifdef WIN32 +#if defined(_WIN32) || defined(__OS2__) #include #endif #include @@ -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;