[GRASS-SVN] r40730 - grass-addons/imagery/i.pr/i.pr_sites_aggregate
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 29 01:04:38 EST 2010
Author: hamish
Date: 2010-01-29 01:04:37 -0500 (Fri, 29 Jan 2010)
New Revision: 40730
Modified:
grass-addons/imagery/i.pr/i.pr_sites_aggregate/Makefile
grass-addons/imagery/i.pr/i.pr_sites_aggregate/main.c
Log:
Glynn: "The vector headers include the OGR headers, so anything which
includes the vector headers needs any -I switches which are required to
find the OGR headers."
Modified: grass-addons/imagery/i.pr/i.pr_sites_aggregate/Makefile
===================================================================
--- grass-addons/imagery/i.pr/i.pr_sites_aggregate/Makefile 2010-01-28 23:01:49 UTC (rev 40729)
+++ grass-addons/imagery/i.pr/i.pr_sites_aggregate/Makefile 2010-01-29 06:04:37 UTC (rev 40730)
@@ -1,7 +1,7 @@
MODULE_TOPDIR = ../../..
PRINCLUDE = ../include/
-EXTRA_CFLAGS = -I$(PRINCLUDE)
+EXTRA_CFLAGS = $(VECT_CFLAGS) -I$(PRINCLUDE)
PRLIB = -lgrass_pr
PGM = i.pr.sites_aggregate
Modified: grass-addons/imagery/i.pr/i.pr_sites_aggregate/main.c
===================================================================
--- grass-addons/imagery/i.pr/i.pr_sites_aggregate/main.c 2010-01-28 23:01:49 UTC (rev 40729)
+++ grass-addons/imagery/i.pr/i.pr_sites_aggregate/main.c 2010-01-29 06:04:37 UTC (rev 40730)
@@ -111,6 +111,7 @@
fp=fopen(opt1->answer,"r");
+ /* better to use G_tokenize() here? */
npoints=0;
while((line=GetLine(fp))!=NULL){
sscanf(line,"%lf", &(data[npoints][0]));
More information about the grass-commit
mailing list