summaryrefslogtreecommitdiff
path: root/zen/file_io.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:59 +0200
commita1c91f4695e208d5a8f80dc37b1818169b7829ff (patch)
tree52f5134376d17c99b6c9e53133a2eb5cf171377c /zen/file_io.h
parent5.16 (diff)
downloadFreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.gz
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.bz2
FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.zip
5.17
Diffstat (limited to 'zen/file_io.h')
-rw-r--r--zen/file_io.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/zen/file_io.h b/zen/file_io.h
index 407109f7..93267a39 100644
--- a/zen/file_io.h
+++ b/zen/file_io.h
@@ -10,9 +10,9 @@
#include "file_io_base.h"
#include "file_error.h"
-#ifdef FFS_WIN
+#ifdef ZEN_WIN
#include "win.h" //includes "windows.h"
-#elif defined FFS_LINUX || defined FFS_MAC
+#elif defined ZEN_LINUX || defined ZEN_MAC
#include <cstdio>
#include <sys/stat.h>
#endif
@@ -20,19 +20,19 @@
namespace zen
{
-#ifdef FFS_WIN
+#ifdef ZEN_WIN
static const char LINE_BREAK[] = "\r\n";
-#elif defined FFS_LINUX
+#elif defined ZEN_LINUX
static const char LINE_BREAK[] = "\n";
-#elif defined FFS_MAC
+#elif defined ZEN_MAC
static const char LINE_BREAK[] = "\r";
#endif
//buffered file IO optimized for sequential read/write accesses + better error reporting + long path support (following symlinks)
-#ifdef FFS_WIN
+#ifdef ZEN_WIN
typedef HANDLE FileHandle;
-#elif defined FFS_LINUX || defined FFS_MAC
+#elif defined ZEN_LINUX || defined ZEN_MAC
typedef FILE* FileHandle;
#endif
@@ -64,7 +64,7 @@ private:
FileHandle fileHandle;
};
-#if defined FFS_LINUX || defined FFS_MAC
+#if defined ZEN_LINUX || defined ZEN_MAC
class FileInputUnbuffered : public FileInputBase
{
public:
bgstack15