Skip to content

Commit e78998e

Browse files
author
deepikabhavnani
committed
Definition for stat was missing in header file
1 parent ab1b3ae commit e78998e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

platform/mbed_retarget.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,14 @@ struct stat {
415415
time_t st_ctime; ///< Time of last status change
416416
};
417417

418+
#if __cplusplus
419+
extern "C" {
420+
#endif
421+
int stat(const char *path, struct stat *st);
422+
#if __cplusplus
423+
};
424+
#endif
425+
418426

419427
/* The following are dirent.h definitions are declared here to garuntee
420428
* consistency where structure may be different with different toolchains

0 commit comments

Comments
 (0)