fixed drive strength
Fork of mbed-dev by
Diff: platform/mbed_retarget.h
- Revision:
- 161:2cc1468da177
- Parent:
- 160:d5399cc887bb
--- 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