diff options
| author | qiuyiuestc <[email protected]> | 2010-09-23 11:05:41 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-09-23 11:05:41 +0000 |
| commit | a6675897486ae41f892f849b508aeb848b55e901 (patch) | |
| tree | b9ab0f84a17a9afef62a2d55aa4c269f8bd7985a /components | |
| parent | e8db9d735bee95329cfffbae9fb6c2311479c829 (diff) | |
modify stat to _stat
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@931 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/rtgui/widgets/filelist_view.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/rtgui/widgets/filelist_view.c b/components/rtgui/widgets/filelist_view.c index eef76a5a6a..53e04d227c 100644 --- a/components/rtgui/widgets/filelist_view.c +++ b/components/rtgui/widgets/filelist_view.c @@ -30,7 +30,6 @@ #include <dirent.h>
#include <sys/stat.h>
#define PATH_SEPARATOR '\\'
-#define stat _stat
#else
#include <dfs_posix.h>
#define PATH_SEPARATOR '/'
@@ -731,7 +730,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* if (directory != RT_NULL)
{
DIR* dir;
- struct stat s;
+ struct _stat s;
rt_uint32_t index;
struct dirent* dirent;
@@ -794,7 +793,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* item = &(view->items[index]);
item->name = rt_strdup(dirent->d_name);
- rt_memset(&s, 0, sizeof(struct stat));
+ rt_memset(&s, 0, sizeof(struct _stat));
/* build full path for the file */
if (directory[strlen(directory) - 1] != PATH_SEPARATOR)
|
