[GRASS-SVN] r70475 - grass/branches/releasebranch_7_2/display/d.linegraph

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 2 01:31:05 PST 2017


Author: neteler
Date: 2017-02-02 01:31:05 -0800 (Thu, 02 Feb 2017)
New Revision: 70475

Modified:
   grass/branches/releasebranch_7_2/display/d.linegraph/main.c
Log:
d.linegraph: define MIN/MAX macros only when needed (trunk, r69615)

Modified: grass/branches/releasebranch_7_2/display/d.linegraph/main.c
===================================================================
--- grass/branches/releasebranch_7_2/display/d.linegraph/main.c	2017-02-02 09:10:41 UTC (rev 70474)
+++ grass/branches/releasebranch_7_2/display/d.linegraph/main.c	2017-02-02 09:31:05 UTC (rev 70475)
@@ -38,8 +38,12 @@
 #include <grass/glocale.h>
 #include "linegraph.h"
 
+#ifndef MAX
 #define MAX(x,y) ((x) > (y) ? (x) : (y))
+#endif
+#ifndef MIN
 #define MIN(x,y) ((x) < (y) ? (x) : (y))
+#endif
 
 /* the default order of precedence of colors to use for Y lines */
 int default_y_colors[] = {



More information about the grass-commit mailing list