[GRASS-SVN] r67275 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 20 04:50:48 PST 2015


Author: martinl
Date: 2015-12-20 04:50:48 -0800 (Sun, 20 Dec 2015)
New Revision: 67275

Modified:
   grass/trunk/include/gis.h
Log:
libgis: add cross-platform newline character

Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2015-12-20 11:44:16 UTC (rev 67274)
+++ grass/trunk/include/gis.h	2015-12-20 12:50:48 UTC (rev 67275)
@@ -59,7 +59,13 @@
 #define PRI_OFF_T	"ld"
 #endif
 
+/*! \brief Cross-platform Newline Character */
 #define NEWLINE     '\n'
+#ifdef __MINGW32__
+#  define HOST_NEWLINE "\r\n"
+#else
+#  define HOST_NEWLINE "\n"
+#endif
 
 /*!
   \brief List of units



More information about the grass-commit mailing list