mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

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