[GRASS-SVN] r46211 - grass-addons/raster/r.fuzzy

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 9 07:52:29 EDT 2011


Author: neteler
Date: 2011-05-09 04:52:29 -0700 (Mon, 09 May 2011)
New Revision: 46211

Modified:
   grass-addons/raster/r.fuzzy/local_proto.h
Log:
compilation fix

Modified: grass-addons/raster/r.fuzzy/local_proto.h
===================================================================
--- grass-addons/raster/r.fuzzy/local_proto.h	2011-05-08 20:39:53 UTC (rev 46210)
+++ grass-addons/raster/r.fuzzy/local_proto.h	2011-05-09 11:52:29 UTC (rev 46211)
@@ -26,10 +26,16 @@
 #define LEFT 1
 #define RIGHT 2
 
-char *input, *output;
-float shape, height;
-int type, side;
-double p[4];			/* inflection points */
-int num_points;
+#ifdef MAIN
+#       define GLOBAL
+#else
+#       define GLOBAL extern
+#endif
 
+GLOBAL char *input, *output;
+GLOBAL float shape, height;
+GLOBAL int type, side;
+GLOBAL double p[4];			/* inflection points */
+GLOBAL int num_points;
+
 float fuzzy(FCELL cell);



More information about the grass-commit mailing list