Skip to content

Commit

Permalink
Merge pull request #1600 from adamgreen/fixIssue1599
Browse files Browse the repository at this point in the history
Fix issue #1599
  • Loading branch information
0xc0170 committed Mar 8, 2016
2 parents dcda8ec + 5b5d7ee commit acd92ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/mbed/common/retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ static inline int openmode_to_posix(int openmode) {
if (openmode & _LLIO_CREAT ) posix |= O_CREAT;
if (openmode & _LLIO_APPEND) posix |= O_APPEND;
if (openmode & _LLIO_TRUNC ) posix |= O_TRUNC;
#elif defined(TOOLCHAIN_GCC)
posix &= ~O_BINARY;
#endif
return posix & ~O_BINARY;
return posix;
}

extern "C" FILEHANDLE PREFIX(_open)(const char* name, int openmode) {
Expand Down

0 comments on commit acd92ac

Please sign in to comment.