[GRASS-dev] Re: lib/vector/Vlib/field.c: Assumes `HAVE_GDAL'
oneingray at gmail.com
Mon Mar 23 23:10:23 EDT 2009
>>>>> Markus Neteler <neteler at osgeo.org> writes:
>> Currently, GRASS doesn't compile well --without-gdal, since the
>> code in `field.c' seems to assume that GDAL is available.
>> The following patch seems to fix the issue. Unless there'll be
>> objections, I'm going to commit it to the trunk.
>> --- field.c (revision 36440)
>> +++ field.c (working copy)
>> @@ -29,7 +29,9 @@
>> #include <grass/dbmi.h>
>> #include <grass/Vect.h>
>> +#ifdef HAVE_GDAL
>> #include <gdal_version.h> /* needed for FID detection */
>> +#endif /* HAVE_GDAL */
> This looks good to me (untested).
At least, it compiles here (without HAVE_GDAL) fine.
I've committed the change as r36464.
FSF associate member #7257
More information about the grass-dev