[GRASS-dev] Re: [GRASS-user] r.in.xyz: Could open text file ~
2.5GB
Glynn Clements
glynn at gclements.plus.com
Fri Oct 27 16:17:48 EDT 2006
Hamish wrote:
> > > If we get that, should every LFS compliant module be
> > > written like:
> > >
> > > #ifdef HAVE_FTELLO
> > > off_t filesize;
> > > #else
> > > long filesize;
> > > #endif
> >
> > No. You may as well just use "off_t filesize" unconditionally. An
> > "off_t" will always be large enough to hold a "long".
>
> will all compilers (within reason) know about the off_t type?
It's a POSIX-ism, although it is provided by the MSVCRT headers:
http://msdn2.microsoft.com/en-us/library/323b6b3k.aspx
Also, a lot of GRASS (including the core raster I/O) will fail to
compile without it.
On some platforms, you may need to explicitly include <sys/types.h>
for off_t to be visible.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list