mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1595 from adamgreen/gccFOpenBinaryFlagIgnore
LocalFileSystem fails to open binary filespull/1589/merge
commit
165d2536fe
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue