[GRASS-dev] diglib test.c fails on 64bit win
glynn at gclements.plus.com
Fri May 14 14:39:12 EDT 2010
Helmut Kudrnovsky wrote:
> >In summary, it seems that grass libraries have no access to a 64-bit
> >off_t when compiled in MINGW32, also with ./configure
> maybe FYI:
> "GCC for both x64 & x86 Windows:
This is unrelated to Win64.
Win32 has a 64-bit version of off_t and functions which use it.
However, there isn't any equivalent of _FILE_OFFSET_BITS=64, which (on
Unix) causes off_t and any relevant functions to be "redirected" to
the 64-bit equivalents.
The problem with using 64-bit offsets is that they have to be used
consistently. If code using a 64-bit off_t passes it to code expecting
a 32-bit off_t, you lose.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev