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.
Fork of mbed-src by
Revision 7:3a1b3e92fa02, committed 2013-04-24
- Comitter:
- emilmont
- Date:
- Wed Apr 24 15:11:33 2013 +0000
- Parent:
- 6:6dfdb79ccc45
- Child:
- 8:4e25b8576136
- Commit message:
- Prepare support for ARMCC 5.03 (mainline microlib)
Changed in this revision
cpp/stdio.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/cpp/stdio.cpp Mon Mar 18 10:36:46 2013 +0000 +++ b/cpp/stdio.cpp Wed Apr 24 15:11:33 2013 +0000 @@ -46,9 +46,17 @@ using namespace mbed; +#if defined(__MICROLIB) && (__ARMCC_VERSION>5030000) +// Before version 5.03, we were using a patched version of microlib with proper names +extern const char __stdin_name[] = ":tt"; +extern const char __stdout_name[] = ":tt"; +extern const char __stderr_name[] = ":tt"; + +#else extern const char __stdin_name[] = "/stdin"; extern const char __stdout_name[] = "/stdout"; extern const char __stderr_name[] = "/stderr"; +#endif /* newlib has the filehandle field in the FILE struct as a short, so * we can't just return a Filehandle* from _open and instead have to