mbed library sources. Supersedes mbed-src. GR-PEACH runs on RAM.
Fork of mbed-dev by
Revision 85:4b017b08d507, committed 2016-03-08
- Comitter:
- mbed_official
- Date:
- Tue Mar 08 22:45:14 2016 +0000
- Parent:
- 84:74871d7a38d9
- Child:
- 86:5334467ce342
- Commit message:
- Synchronized with git revision acd92ac35e2c67b6c728cf85db6e45b3a3f53efd
Full URL: https://github.com/mbedmicro/mbed/commit/acd92ac35e2c67b6c728cf85db6e45b3a3f53efd/
Fix issue #1599
Changed in this revision
| common/retarget.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/common/retarget.cpp Tue Mar 08 08:00:24 2016 +0000
+++ b/common/retarget.cpp Tue Mar 08 22:45:14 2016 +0000
@@ -121,8 +121,10 @@
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) {
