[GRASS-SVN] r70294 - in grass/trunk: lib/rst/interp_float vector/v.surf.rst

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 7 13:42:55 PST 2017


Author: annakrat
Date: 2017-01-07 13:42:55 -0800 (Sat, 07 Jan 2017)
New Revision: 70294

Modified:
   grass/trunk/lib/rst/interp_float/segmen2d_parallel.c
   grass/trunk/vector/v.surf.rst/main.c
Log:
v.surf.rst: fix compilation for clang

Modified: grass/trunk/lib/rst/interp_float/segmen2d_parallel.c
===================================================================
--- grass/trunk/lib/rst/interp_float/segmen2d_parallel.c	2017-01-07 20:37:16 UTC (rev 70293)
+++ grass/trunk/lib/rst/interp_float/segmen2d_parallel.c	2017-01-07 21:42:55 UTC (rev 70294)
@@ -18,7 +18,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
+#if defined(_OPENMP)
 #include <omp.h>
+#endif
 #include <grass/gis.h>
 #include <grass/glocale.h>
 #include <grass/interpf.h>

Modified: grass/trunk/vector/v.surf.rst/main.c
===================================================================
--- grass/trunk/vector/v.surf.rst/main.c	2017-01-07 20:37:16 UTC (rev 70293)
+++ grass/trunk/vector/v.surf.rst/main.c	2017-01-07 21:42:55 UTC (rev 70294)
@@ -22,7 +22,9 @@
  *
  *****************************************************************************/
 
+#if defined(_OPENMP)
 #include <omp.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>



More information about the grass-commit mailing list