[GRASS-dev] diglib test.c fails on 64bit win
Markus Metz
markus.metz.giswork at googlemail.com
Wed May 12 07:26:31 EDT 2010
On Wed, May 12, 2010 at 1:11 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Metz wrote:
>
>> #ifdef __MINGW32__
>> #define off_t off64_t
>> #define fseeko fseeko64
>> #define ftello ftello64
>> #endif
>>
>> in config.h have any effect?
>
> If you do that, you will also need to fix lseek() and stat().
>
I found that in config.h of trunk, generated from config.h.in, so I
wondered about its purpose and effect.
> 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?
More information about the grass-dev
mailing list