"(turn): Fix comparing the output of write() to an unsigned sizeof by

casting the sizeof to write's most used return-type (ssize_t). Introduce
a typedef for ssize_t for _WIN32 in include/misc.h."
This commit is contained in:
Marc Olzheim 2004-12-17 15:44:57 +00:00
parent 09b73000c2
commit a2284aac8d

View file

@ -43,6 +43,7 @@
typedef unsigned char u_char; typedef unsigned char u_char;
typedef unsigned short u_short; typedef unsigned short u_short;
typedef unsigned int u_int; typedef unsigned int u_int;
typedef long ssize_t;
/* integral mismatch, due to misuse of sector short */ /* integral mismatch, due to misuse of sector short */
#pragma warning (disable : 4761 ) #pragma warning (disable : 4761 )