[GRASS-SVN] r40883 - in grass/trunk/raster/r.li: . r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 9 01:19:20 EST 2010
Author: glynn
Date: 2010-02-09 01:19:19 -0500 (Tue, 09 Feb 2010)
New Revision: 40883
Modified:
grass/trunk/raster/r.li/Makefile
grass/trunk/raster/r.li/r.li.daemon/daemon.c
Log:
Enable r.li on Windows
Substitute rand/srand for random/srandom on Windows
Modified: grass/trunk/raster/r.li/Makefile
===================================================================
--- grass/trunk/raster/r.li/Makefile 2010-02-09 02:37:35 UTC (rev 40882)
+++ grass/trunk/raster/r.li/Makefile 2010-02-09 06:19:19 UTC (rev 40883)
@@ -23,9 +23,7 @@
include $(MODULE_TOPDIR)/include/Make/Dir.make
-ifndef MINGW
default: parsubdirs htmldir
-endif
$(SUBDIRS1): r.li.daemon
Modified: grass/trunk/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/daemon.c 2010-02-09 02:37:35 UTC (rev 40882)
+++ grass/trunk/raster/r.li/r.li.daemon/daemon.c 2010-02-09 06:19:19 UTC (rev 40883)
@@ -35,6 +35,10 @@
#include <grass/glocale.h>
#include "daemon.h"
+#ifdef __MINGW32__
+#define srandom srand
+#define random rand
+#endif
int calculateIndex(char *file, int f(int, char **, area_des, double *),
char **parameters, char *raster, char *output)
More information about the grass-commit
mailing list