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

Glynn Clements glynn at gclements.plus.com
Wed May 12 07:11:47 EDT 2010

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().

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).

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list