diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/fileio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/helper/fileio.c b/src/helper/fileio.c index 7075fc16..742bc689 100644 --- a/src/helper/fileio.c +++ b/src/helper/fileio.c @@ -97,9 +97,14 @@ int fileio_open_local(fileio_t *fileio) return ERROR_FILEIO_OPERATION_FAILED; } } - + + /* win32 always opens in binary mode */ +#ifndef _WIN32 if (fileio->type == FILEIO_BINARY) +#endif + { strcat(access, "b"); + } if (!(fileio_local->file = fopen(fileio->url, access))) { |