X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdio-write.c;h=f1d0fcb730566c30b61714d872ae0d51a048afff;hb=ffb0da8f73d65580025dfd9bc0705cffe0281d74;hp=1bd1be29ebfdc0a00f9e516c198d790c1f7ee66d;hpb=9ff044ec4deb16682a04fb608b2576f205da48e3;p=gnulib.git diff --git a/lib/stdio-write.c b/lib/stdio-write.c index 1bd1be29e..f1d0fcb73 100644 --- 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); \