diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-19 16:54:13 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-19 16:54:13 -0800 |
commit | 367ba1df2786888451328416a2db991fa8018083 (patch) | |
tree | 84e1603cbf2630b6686cc542ba855cd2cce30bec | |
parent | 040039e3007ea9a24621ea1831b51a516003ad64 (diff) |
Fixing Win32's Input open statement.
-rw-r--r-- | src/Input.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Input.cc b/src/Input.cc index 2a87a5d..64a05ec 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -40,7 +40,7 @@ class AsyncOpOpen : public Balau::AsyncOperation { AsyncOpOpen(const char * path, cbResults_t * results) : m_path(path), m_results(results) { } virtual void run() { #ifdef _MSC_VER - const ssize_t r = m_results->result = _open(m_path, O_RDONLY); + const ssize_t r = m_results->result = _open(m_path, O_RDONLY | O_BINARY); #else const ssize_t r = m_results->result = open(m_path, O_RDONLY); #endif |