summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvidvi
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:13:15 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:13:15 +0000
commitea37e01ed7dd866b56f7d5516bd4295f490e560a (patch)
treecf816993bd403b8b0fccd38da567f97249ece14e /Build/source/texk/dvidvi
parent9f58d9ec6188c26295195f8b25cc325a0d092541 (diff)
Drop the problematic prototype for isatty()
Cast arguments to avoid MSVC compiler warnings (from W32TeX) git-svn-id: svn://tug.org/texlive/trunk@26966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvidvi')
-rw-r--r--Build/source/texk/dvidvi/ChangeLog7
-rw-r--r--Build/source/texk/dvidvi/dvidvi.c10
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 ;