[GRASS-dev] r.terraflow Windows patch
Glynn Clements
glynn at gclements.plus.com
Sun Feb 24 12:06:37 EST 2008
Moritz Lennert wrote:
> > Can someone test the attached patch on Windows (MSys)?
>
> I now get:
>
> main.cc: In function `void record_args(int, char**)':
> main.cc:327: error: `ctime_r' undeclared (first use this function)
The attached patch should fix that issue.
If there are any remaining errors, please use "make -k", so that you
get all of them.
--
Glynn Clements <glynn at gclements.plus.com>
-------------- next part --------------
Index: raster/r.terraflow/main.cc
===================================================================
--- raster/r.terraflow/main.cc (revision 30318)
+++ raster/r.terraflow/main.cc (working copy)
@@ -324,8 +324,12 @@
exit(1);
}
+#ifdef __MINGW32__
+ strcpy(buf, ctime(&t));
+#else
ctime_r(&t, buf);
buf[24] = '\0';
+#endif
stats->timestamp(buf);
*stats << "Command Line: " << endl;
More information about the grass-dev
mailing list