spreadsheet: fix csvDefault unit test 90/10790/2
Simon Marchetto [Tue, 12 Mar 2013 14:13:24 +0000 (15:13 +0100)]
Change-Id: Ie6721d38f4d95b7de46bf0d14674e38c4d33a73f

scilab/modules/spreadsheet/src/c/csvDefault.c

index 11c783f..910034a 100644 (file)
 #define DEFAULT_CSV_DECIMAL "."
 #define DEFAULT_CSV_PRECISION "%.17lg"
 #define DEFAULT_CSV_COMMENTS_REGEXP ""
+#ifdef _MSC_VER
+#define DEFAULT_CSV_EOL "\r\n"
+#else
 #define DEFAULT_CSV_EOL "\n"
+#endif
 #define CSV_DECIMAL_MODE_1 DEFAULT_CSV_DECIMAL
 #define CSV_DECIMAL_MODE_2 ","
 #define DEFAULT_CSV_CONVERSION "double"