mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-07 21:24:35 +08:00
modify stat to _stat
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@931 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
e8db9d735b
commit
a667589748
@ -30,7 +30,6 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#define PATH_SEPARATOR '\\'
|
#define PATH_SEPARATOR '\\'
|
||||||
#define stat _stat
|
|
||||||
#else
|
#else
|
||||||
#include <dfs_posix.h>
|
#include <dfs_posix.h>
|
||||||
#define PATH_SEPARATOR '/'
|
#define PATH_SEPARATOR '/'
|
||||||
@ -731,7 +730,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char*
|
|||||||
if (directory != RT_NULL)
|
if (directory != RT_NULL)
|
||||||
{
|
{
|
||||||
DIR* dir;
|
DIR* dir;
|
||||||
struct stat s;
|
struct _stat s;
|
||||||
rt_uint32_t index;
|
rt_uint32_t index;
|
||||||
struct dirent* dirent;
|
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 = &(view->items[index]);
|
||||||
item->name = rt_strdup(dirent->d_name);
|
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 */
|
/* build full path for the file */
|
||||||
if (directory[strlen(directory) - 1] != PATH_SEPARATOR)
|
if (directory[strlen(directory) - 1] != PATH_SEPARATOR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user