diff --git a/ChangeLog b/ChangeLog index e2612139..666c59d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-06-16 Even Rouault + + * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) + 2015-06-14 Lee Howard * libtiff/tif_unix.c: contribution from Vadim Zeitlin on diff --git a/libtiff/tif_unix.c b/libtiff/tif_unix.c index 6dc55467..e96841a4 100644 --- a/libtiff/tif_unix.c +++ b/libtiff/tif_unix.c @@ -1,4 +1,4 @@ -/* $Id: tif_unix.c,v 1.25 2015-06-14 23:13:40 faxguy Exp $ */ +/* $Id: tif_unix.c,v 1.26 2015-06-16 15:33:17 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -114,9 +114,9 @@ _tiffCloseProc(thandle_t fd) static uint64 _tiffSizeProc(thandle_t fd) { + struct stat sb; fd_as_handle_union_t fdh; fdh.h = fd; - struct stat sb; if (fstat(fdh.fd,&sb)<0) return(0); else