4545

Dependents:   LSS_Rev_1

Fork of mbed-dev by Umar Naeem

Revision:
161:2cc1468da177
Parent:
160:d5399cc887bb
diff -r d5399cc887bb -r 2cc1468da177 platform/mbed_retarget.h
--- 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