diff options
| author | [email protected] <[email protected]> | 2012-12-13 02:13:34 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-13 02:13:34 +0000 |
| commit | 56ab153b1c92ccfc3695adf9fe8bef3e5230369d (patch) | |
| tree | 80610849d83ea1332e61619acd4420da74b507ad /components/dfs/include | |
| parent | d8796d9639bb6e9e2c5d5a7cf4d54623ed905b93 (diff) | |
update dfs to support NFTL
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2478 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/include')
| -rw-r--r-- | components/dfs/include/dfs_def.h | 5 | ||||
| -rw-r--r-- | components/dfs/include/dfs_posix.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h index c0fe47fe0c..d467792f2f 100644 --- a/components/dfs/include/dfs_def.h +++ b/components/dfs/include/dfs_def.h @@ -198,6 +198,11 @@ #define DFS_SEEK_SET SEEK_SET #define DFS_SEEK_CUR SEEK_CUR #define DFS_SEEK_END SEEK_END +#elif defined(_MSC_VER) +#include <stdio.h> +#define DFS_SEEK_SET SEEK_SET +#define DFS_SEEK_CUR SEEK_CUR +#define DFS_SEEK_END SEEK_END #else #define DFS_SEEK_SET 0 #define DFS_SEEK_CUR 1 diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 9627a4fe73..503099cff6 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -69,6 +69,8 @@ #if defined(__CC_ARM) #include <stdio.h> +#elif defined(_MSC_VER) +#include <stdio.h> #else #define SEEK_SET DFS_SEEK_SET #define SEEK_CUR DFS_SEEK_CUR |
