From 62a118903c62ee0cd98698820ef30285aa2b4ab7 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 23 Feb 2006 05:43:57 +0000 Subject: [PATCH] added int cast on write call in new terminal printing code, and added an include of io.h on windows git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6011 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_linux.c | 3 ++- sys_sdl.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys_linux.c b/sys_linux.c index 13bc04f4..d0120432 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -1,5 +1,6 @@ #ifdef WIN32 +#include #include "conio.h" #else #include @@ -58,7 +59,7 @@ void Sys_PrintToTerminal(const char *text) #endif while(*text) { - ssize_t written = write(1, text, strlen(text)); + int written = (int)write(1, text, strlen(text)); if(written <= 0) break; // sorry, I cannot do anything about this error - without an output text += written; diff --git a/sys_sdl.c b/sys_sdl.c index 3833fdad..d18b4b6e 100644 --- a/sys_sdl.c +++ b/sys_sdl.c @@ -1,5 +1,6 @@ #ifdef WIN32 +#include #include "conio.h" #else #include @@ -56,7 +57,7 @@ void Sys_PrintToTerminal(const char *text) #endif while(*text) { - ssize_t written = write(1, text, strlen(text)); + int written = (int)write(1, text, strlen(text)); if(written <= 0) break; // sorry, I cannot do anything about this error - without an output text += written; -- 2.39.2