diff options
author | shennetsind <ind@henn.et> | 2013-07-08 12:20:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-08 12:20:06 -0300 |
commit | f409afc22eb2d561e9eedcb238aa624ad7e80f4e (patch) | |
tree | 689eca14cb62281d93785aa7d2174ed72ad6fdf2 /src/common | |
parent | 4abfdc61a3031db5701613807bcd4ecee4434a00 (diff) | |
download | hercules-f409afc22eb2d561e9eedcb238aa624ad7e80f4e.tar.gz hercules-f409afc22eb2d561e9eedcb238aa624ad7e80f4e.tar.bz2 hercules-f409afc22eb2d561e9eedcb238aa624ad7e80f4e.tar.xz hercules-f409afc22eb2d561e9eedcb238aa624ad7e80f4e.zip |
Fixed Cygwin Problem
Special Thanks to quesoph.
http://hercules.ws/board/topic/1402-error-compiling-with-cygwin/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-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; |