The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: platform/mbed_retarget.h
- Revision:
- 139:856d2700e60b
- Parent:
- 138:093f2bd7b9eb
- Child:
- 145:64910690c574
--- a/platform/mbed_retarget.h Tue Mar 14 16:20:51 2017 +0000 +++ b/platform/mbed_retarget.h Thu Mar 30 13:26:47 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