[GRASS-dev] Re: [GRASS-user] r.in.xyz: Could open text file ~
glynn at gclements.plus.com
Fri Oct 27 16:17:48 EDT 2006
> > > 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:
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