diff options
-rw-r--r-- | src/common/console.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/console.c b/src/common/console.c index 08daec04e..4ae210e55 100644 --- a/src/common/console.c +++ b/src/common/console.c @@ -2,6 +2,7 @@ // See the LICENSE file // Portions Copyright (c) Athena Dev Teams +#include "../common/cbasetypes.h" #include "../common/showmsg.h" #include "../common/core.h" #include "../config/core.h" @@ -20,14 +21,14 @@ #include <stdio.h> #include <stdlib.h> -#ifndef _WIN32 +#ifndef WIN32 #include <unistd.h> #else #include "../common/winapi.h" // Console close event handling #endif #ifdef CONSOLE_INPUT - #ifdef _WIN32 + #ifdef WIN32 #include <conio.h> /* _kbhit() */ #endif #endif @@ -60,11 +61,11 @@ void display_title(void) { ShowInfo("SVN Revision: '"CL_WHITE"%s"CL_RESET"'\n", svn); } #ifdef CONSOLE_INPUT -#ifdef _WIN32 +#if defined(WIN32) int console_parse_key_pressed(void) { return _kbhit(); } -#else /* _WIN32 */ +#else /* WIN32 */ int console_parse_key_pressed(void) { struct timeval tv; fd_set fds; |