more dos bits

This commit is contained in:
nethack.allison
2006-07-10 02:10:22 +00:00
parent 00768fce8b
commit 0abece54c1
4 changed files with 232 additions and 14 deletions

View File

@@ -738,7 +738,7 @@ register unsigned num;
#endif /* UNIX */
{
/* lint wants the 3rd arg of write to be an int; lint -p an unsigned */
#if defined(BSD) || defined(ULTRIX) || defined(WIN32)
#if defined(BSD) || defined(ULTRIX) || defined(WIN32) || defined(_MSC_VER)
failed = (write(fd, loc, (int)num) != (int)num);
#else /* e.g. SYSV, __TURBOC__ */
failed = (write(fd, loc, num) != num);