summaryrefslogtreecommitdiff
path: root/zen/file_io.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
commitfe9eb89ebc1b3c33cbac00a3fa095a14faef9113 (patch)
tree8a3bb620a9acb83fe0057061a86e8f2cb91a9fe1 /zen/file_io.h
parent5.21 (diff)
downloadFreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.gz
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.bz2
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.zip
5.22
Diffstat (limited to 'zen/file_io.h')
-rw-r--r--zen/file_io.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/zen/file_io.h b/zen/file_io.h
index 0c7506a1..2e9e828e 100644
--- a/zen/file_io.h
+++ b/zen/file_io.h
@@ -22,10 +22,8 @@ namespace zen
{
#ifdef ZEN_WIN
static const char LINE_BREAK[] = "\r\n";
-#elif defined ZEN_LINUX
-static const char LINE_BREAK[] = "\n";
-#elif defined ZEN_MAC
-static const char LINE_BREAK[] = "\r";
+#elif defined ZEN_LINUX || defined ZEN_MAC
+static const char LINE_BREAK[] = "\n"; //since OS X apple uses newline, too
#endif
//buffered file IO optimized for sequential read/write accesses + better error reporting + long path support (following symlinks)
bgstack15