diff options
author | Karl Berry <karl@freefriends.org> | 2008-04-29 22:47:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-04-29 22:47:35 +0000 |
commit | 975dca39430fc2c5a51f5aa0feb302e2f210fb02 (patch) | |
tree | 7f5850fc08984a1fc409a94cba6a45b7edaabfcb /Build | |
parent | bcf86abb25be0f6cec4a99dfe1ab4a7d56ee8afc (diff) |
O_BINARY for Windows
git-svn-id: svn://tug.org/texlive/trunk@7732 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/squeeze.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 86a37b83489..d172405529d 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,8 @@ +2008-04-30 Karl Berry <karl@tug.org> + + * squeeze.c (SET_BINARY) [O_BINARY]: conditionally #define. + Cast call to specialout. (From Akira.) + 2008-04-29 Karl Berry <karl@tug.org> * Makefile.in (install-data): do not cd $(srcdir) in any rule, diff --git a/Build/source/texk/dvipsk/squeeze.c b/Build/source/texk/dvipsk/squeeze.c index 74e7abcf336..73a71f19baf 100644 --- a/Build/source/texk/dvipsk/squeeze.c +++ b/Build/source/texk/dvipsk/squeeze.c @@ -19,6 +19,10 @@ # endif #endif /* !O_BINARY */ +#if O_BINARY +#define SET_BINARY(fd) _setmode((fd), O_BINARY) +#endif + #define LINELENGTH (72) #define BUFLENGTH (1000) @@ -111,7 +115,7 @@ case '{' : case '}' : case '[' : case ']' : - specialout(c) ; + specialout((char) c) ; break ; case '<' : case '(' : |