From 71962c6ed1e0bdf41e604a8014b93889f9d07ee5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 26 Jun 2020 20:05:36 +0100 Subject: Squash warnings seen in Windows 64 bit build. --- base/gp_winfs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'base/gp_winfs.c') diff --git a/base/gp_winfs.c b/base/gp_winfs.c index d934a2fa7..d05055eda 100644 --- a/base/gp_winfs.c +++ b/base/gp_winfs.c @@ -24,6 +24,9 @@ #include "gp_mswin.h" +/* Should be in io.h */ +extern intptr_t _get_osfhandle(int fd); + /* Open a file with the given name, as a stream of uninterpreted bytes. */ FILE * gp_fopen_impl(gs_memory_t *mem, const char *fname, const char *mode) @@ -144,11 +147,11 @@ bool gp_fseekable_impl(FILE *f) { struct __stat64 s; int fno; - + fno = fileno(f); if (fno < 0) return(false); - + if (_fstat64(fno, &s) < 0) return(false); -- cgit v1.2.1