From 854d8866d36b6911dee2fbc77e95084b44471066 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sat, 2 May 2015 22:53:08 +0800 Subject: [DFS] fix the compiling issue under Keil MDK. --- components/dfs/include/dfs_posix.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'components/dfs/include') diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 56a0511422..2d08ec71fa 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -30,6 +30,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef RT_USING_NEWLIB #define O_RDONLY DFS_O_RDONLY #define O_WRONLY DFS_O_WRONLY @@ -79,6 +83,7 @@ #if defined(__CC_ARM) #include +#include #elif defined(_MSC_VER) #include #else @@ -109,6 +114,8 @@ int closedir(DIR* d); #include #endif +struct stat; + /* file api*/ int open(const char *file, int flags, int mode); int close(int d); @@ -126,5 +133,8 @@ int rmdir(const char *path); int chdir(const char *path); char *getcwd(char *buf, size_t size); +#ifdef __cplusplus +} #endif +#endif -- cgit v1.3.1