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-dev by
Diff: platform/mbed_retarget.h
- Revision:
- 161:2cc1468da177
- Parent:
- 160:d5399cc887bb
- Child:
- 167:e84263d55307
--- a/platform/mbed_retarget.h Tue Mar 14 16:40:56 2017 +0000 +++ b/platform/mbed_retarget.h Thu Mar 30 13:45:57 2017 +0100 @@ -50,8 +50,13 @@ #if __cplusplus namespace mbed { class Dir; } typedef mbed::Dir DIR; +#else +typedef struct Dir DIR; +#endif +#if __cplusplus extern "C" { +#endif DIR *opendir(const char*); struct dirent *readdir(DIR *); int closedir(DIR*); @@ -59,6 +64,7 @@ long telldir(DIR*); void seekdir(DIR*, long); int mkdir(const char *name, mode_t n); +#if __cplusplus }; #endif