From f409afc22eb2d561e9eedcb238aa624ad7e80f4e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 8 Jul 2013 12:20:06 -0300 Subject: Fixed Cygwin Problem Special Thanks to quesoph. http://hercules.ws/board/topic/1402-error-compiling-with-cygwin/ Signed-off-by: shennetsind --- src/common/console.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/common') 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 #include -#ifndef _WIN32 +#ifndef WIN32 #include #else #include "../common/winapi.h" // Console close event handling #endif #ifdef CONSOLE_INPUT - #ifdef _WIN32 + #ifdef WIN32 #include /* _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; -- cgit v1.2.3-60-g2f50