diff options
author | truelight <truelight@openttd.org> | 2004-12-23 14:46:16 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-23 14:46:16 +0000 |
commit | a9bb5be49d8b6b26a78b315aceeed972554b46dc (patch) | |
tree | 70df1e5fa1346ddc8214906f90ce7ff391e41e98 /dedicated.c | |
parent | d91326fb4ae64a06dc08458c157b83f3197b5d9c (diff) | |
download | openttd-a9bb5be49d8b6b26a78b315aceeed972554b46dc.tar.xz |
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
Works fine, beside some minor stuff:
- Network is not working yet
- Keyboard is not working
- No MIDI support
- 'A few file selector bugs involving drives'
Diffstat (limited to 'dedicated.c')
-rw-r--r-- | dedicated.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dedicated.c b/dedicated.c index d17302be9..f34c26ea0 100644 --- a/dedicated.c +++ b/dedicated.c @@ -13,6 +13,15 @@ # include <windows.h> /* GetTickCount */ # include <conio.h> #endif + +#ifdef __OS2__ +# include <sys/time.h> /* gettimeofday */ +# include <sys/types.h> +# include <unistd.h> +# include <conio.h> +# define STDIN 0 /* file descriptor for standard input */ +#endif + #ifdef UNIX # include <sys/time.h> /* gettimeofday */ # include <sys/types.h> @@ -134,7 +143,7 @@ static void DedicatedHandleKeyInput() #endif static char input_line[200] = ""; -#ifdef UNIX +#if defined(UNIX) || defined(__OS2__) if (InputWaiting()) { if (_exit_game) return; |