Explorar o código

rst lib, v.vol.rst: avoid namespace pollution on AIX

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56922 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler %!s(int64=12) %!d(string=hai) anos
pai
achega
899fa1bffe
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 5 0
      lib/rst/interp_float/point2d.c
  2. 5 0
      vector/v.vol.rst/user3.c

+ 5 - 0
lib/rst/interp_float/point2d.c

@@ -33,6 +33,11 @@
 #define	POINT2D_C
 #include <grass/interpf.h>
 
+/* needed for AIX */
+#ifdef hz
+#undef hz
+#endif
+
 int IL_check_at_points_2d(struct interp_params *params, struct quaddata *data,	/* current region */
 			  double *b,	/* solution of linear equations */
 			  double *ertot,	/* total error */

+ 5 - 0
vector/v.vol.rst/user3.c

@@ -47,6 +47,11 @@
 #include "points.h"
 #include <grass/bitmap.h>
 
+/* needed for AIX */
+#ifdef hz
+#undef hz
+#endif
+
 int secpar_loop(int ngstc, int nszc, int i)
 {
     double dnorm1, ro, dx2, dy2, dz2, grad1, grad2, slp, grad, oor1, oor2,