[GRASS-dev] diglib test.c fails on 64bit win

Glynn Clements glynn at gclements.plus.com
Thu May 13 11:52:00 EDT 2010


Markus Metz wrote:

> > Also, are there any cases where we pass an off_t to a third-party
> > library? Because that would require the library to use a 64-bit off_t
> > (this is one of the reasons why _FILE_OFFSET_BITS=64 has to be
> > explicitly enabled).
> 
> But even with _FILE_OFFSET_BITS=64, off_t in trunk is 32 bit when
> compiled with MING32, right?

Right. MinGW doesn't use _FILE_OFFSET_BITS and doesn't have any
equivalent, i.e. there is no built-in mechanism to "redirect" off_t,
lseek, stat etc to their 64-bit equivalents.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list