Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
Diff: common/retarget.cpp
- Revision:
- 85:4b017b08d507
- Parent:
- 84:74871d7a38d9
- Child:
- 144:ef7eb2e8f9f7
--- 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) {
