From e78998e1174fed445a0fce6f11a4a0aae0dc2a28 Mon Sep 17 00:00:00 2001 From: deepikabhavnani Date: Wed, 22 Nov 2017 17:41:24 -0600 Subject: [PATCH] Definition for stat was missing in header file --- platform/mbed_retarget.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/mbed_retarget.h b/platform/mbed_retarget.h index eb7ba7a5b3..ac1abc04ed 100644 --- a/platform/mbed_retarget.h +++ b/platform/mbed_retarget.h @@ -415,6 +415,14 @@ struct stat { time_t st_ctime; ///< Time of last status change }; +#if __cplusplus +extern "C" { +#endif + int stat(const char *path, struct stat *st); +#if __cplusplus +}; +#endif + /* The following are dirent.h definitions are declared here to garuntee * consistency where structure may be different with different toolchains