[GRASS-SVN] r67364 - grass/branches/releasebranch_7_0/include

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 24 07:07:44 PST 2015


Author: martinl
Date: 2015-12-24 07:07:44 -0800 (Thu, 24 Dec 2015)
New Revision: 67364

Modified:
   grass/branches/releasebranch_7_0/include/gis.h
Log:
libgis: add cross-platform newline character (bugfix #2745)
        (merge r67275 from trunk)


Modified: grass/branches/releasebranch_7_0/include/gis.h
===================================================================
--- grass/branches/releasebranch_7_0/include/gis.h	2015-12-24 15:04:00 UTC (rev 67363)
+++ grass/branches/releasebranch_7_0/include/gis.h	2015-12-24 15:07:44 UTC (rev 67364)
@@ -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