diff options
-rw-r--r-- | Build/source/texk/dvidvi/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/dvidvi/dvidvi.c | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/Build/source/texk/dvidvi/ChangeLog b/Build/source/texk/dvidvi/ChangeLog index e9d630d3216..805c942ca4e 100644 --- a/Build/source/texk/dvidvi/ChangeLog +++ b/Build/source/texk/dvidvi/ChangeLog @@ -1,3 +1,10 @@ +2012-05-29 Peter Breitenlohner <peb@mppmu.mpg.de> + + * dvidvi.c: Drop the problematic prototype for isatty(), + already declared in <unistd.h> or <kpathsea/c-fopen.h>. + Cast arguments to avoid MSVC compiler warnings. + From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX). + 2011-09-25 Peter Breitenlohner <peb@mppmu.mpg.de> * dvidvi.test: New shell script for tests. diff --git a/Build/source/texk/dvidvi/dvidvi.c b/Build/source/texk/dvidvi/dvidvi.c index e3cb9770397..65d353bb00d 100644 --- a/Build/source/texk/dvidvi/dvidvi.c +++ b/Build/source/texk/dvidvi/dvidvi.c @@ -61,10 +61,6 @@ void error(const char *); #ifdef HAVE_UNISTD_H #include <unistd.h> -#else -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ #endif #ifdef KPATHSEA @@ -977,7 +973,7 @@ static void outdviquad(integer v) static void putbuf(integer length) { while ( length-- > 0 ) - outdvibyte(dvibyte()) ; + outdvibyte((unsigned char)dvibyte()) ; } /* * This routine outputs a string, terminated by null. @@ -1103,10 +1099,10 @@ static void dopage(integer num) fseek(infile,p,SEEK_SET); } if (len < 64) - outdvibyte(171 + len) ; + outdvibyte((unsigned char)(171 + len)) ; else { outdvibyte(235) ; - outdvibyte(len) ; + outdvibyte((unsigned char)len) ; } } else { v = 0 ; |