Merge pull request #1595 from adamgreen/gccFOpenBinaryFlagIgnore

LocalFileSystem fails to open binary files
pull/1589/merge
Martin Kojtal 2016-03-08 07:58:05 +00:00
commit 165d2536fe
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ static inline int openmode_to_posix(int openmode) {
if (openmode & _LLIO_APPEND) posix |= O_APPEND;
if (openmode & _LLIO_TRUNC ) posix |= O_TRUNC;
#endif
return posix;
return posix & ~O_BINARY;
}
extern "C" FILEHANDLE PREFIX(_open)(const char* name, int openmode) {