Skip to content

Commit 4e22295

Browse files
authored
Merge pull request #5561 from deepikabhavnani/retarget_fix
Definition for stat was missing in header file
2 parents ab1b3ae + e78998e commit 4e22295

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)