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;