[GRASS-dev] Vect_rewrite_line using off_t as line id

Glynn Clements glynn at gclements.plus.com
Fri Sep 18 01:29:29 PDT 2015


Radim Blazek wrote:

> Can I get from GRASS includes the real type of off_t which was used
> when GRASS was compiled?

Not easily. Or reliably. You could use the compiler switches from
Platform.make and include <grass/config.h> in the hope that it's
enough to get the same off_t that GRASS used.

Ultimately, the only place where the actual off_t size is "known" is
in compiled code. It might be worth adding this information to the
output of g.version.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list