removed ssize_t from qtypes.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9680
d7cf8633-e32d-0410-b094-
e92efae38249
// Load the central directory in memory
central_dir = (unsigned char *)Mem_Alloc (tempmempool, eocd->cdir_size);
lseek (pack->handle, eocd->cdir_offset, SEEK_SET);
- if(read (pack->handle, central_dir, eocd->cdir_size) != (ssize_t) eocd->cdir_size)
+ if(read (pack->handle, central_dir, eocd->cdir_size) != (fs_offset_t) eocd->cdir_size)
{
Mem_Free (central_dir);
return -1;
--q;
if(*(q-1) != '"')
break;
- if(q - p >= (ssize_t) sizeof(inbuf))
+ if((size_t)(q - p) >= (size_t) sizeof(inbuf))
break;
strlcpy(inbuf, p, q - p); // not - 1, because this adds a NUL
PRVM_PO_ParseString(decodedbuf + decodedpos, inbuf, sizeof(decodedbuf) - decodedpos);
typedef bool qboolean;
#endif
-#if defined(WIN32)
-# define ssize_t long
-#endif
-
#ifndef NULL
#define NULL ((void *)0)
#endif
#endif
while(*text)
{
- ssize_t written = write(1, text, strlen(text));
+ fs_offset_t written = (fs_offset_t)write(1, text, strlen(text));
if(written <= 0)
break; // sorry, I cannot do anything about this error - without an output
text += written;