diff options
Diffstat (limited to 'src/main/cpp/util/file_posix.cc')
-rw-r--r-- | src/main/cpp/util/file_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/util/file_posix.cc b/src/main/cpp/util/file_posix.cc index c5568a4c3e..127f811d32 100644 --- a/src/main/cpp/util/file_posix.cc +++ b/src/main/cpp/util/file_posix.cc @@ -179,7 +179,6 @@ pair<string, string> SplitPath(const string &path) { return std::make_pair(string(path, 0, pos), string(path, pos + 1)); } -#endif // not __CYGWIN__ bool ReadFile(const string &filename, string *content, int max_size) { int fd = open(filename.c_str(), O_RDONLY); @@ -190,6 +189,7 @@ bool ReadFile(const string &filename, string *content, int max_size) { close(fd); return result; } +#endif // not __CYGWIN__ bool WriteFile(const void *data, size_t size, const string &filename) { UnlinkPath(filename); // We don't care about the success of this. |