diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-06-26 20:05:36 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-06-29 13:56:10 +0100 |
commit | 71962c6ed1e0bdf41e604a8014b93889f9d07ee5 (patch) | |
tree | e57f0e589bcbc5e037d3002eb61e8a414097b39f /base/gp_winfs.c | |
parent | b68604731130f5493d2ecd5ae627b1bae9624c64 (diff) | |
download | ghostpdl-71962c6ed1e0bdf41e604a8014b93889f9d07ee5.tar.gz |
Squash warnings seen in Windows 64 bit build.
Diffstat (limited to 'base/gp_winfs.c')
-rw-r--r-- | base/gp_winfs.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |