Mercurial > hg > octave-lojdl > gnulib-hg
changeset 10490:d001c234268f
Cast the _get_osfhandle result, to avoid a warning.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 26 Sep 2008 15:12:55 +0200 |
parents | 4e5796b3cdfd |
children | c8c21ddfe3ba |
files | lib/stdio-write.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/stdio-write.c +++ b/lib/stdio-write.c @@ -49,7 +49,8 @@ if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream)) \ { \ int fd = fileno (stream); \ - if (fd >= 0 && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE) \ + if (fd >= 0 \ + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\ { \ /* Try to raise signal SIGPIPE. */ \ raise (SIGPIPE); \