Fix the Windows dirent reimplementation structure name
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
# define MAXDIRLEN 127
|
# define MAXDIRLEN 127
|
||||||
|
|
||||||
|
|
||||||
struct direct {
|
struct dirent {
|
||||||
long d_ino;
|
long d_ino;
|
||||||
unsigned short d_reclen;
|
unsigned short d_reclen;
|
||||||
unsigned short d_off;
|
unsigned short d_off;
|
||||||
@@ -49,7 +49,7 @@ typedef struct {
|
|||||||
#else
|
#else
|
||||||
char dir[MAXDIRLEN+1]; /* open dir */
|
char dir[MAXDIRLEN+1]; /* open dir */
|
||||||
#endif
|
#endif
|
||||||
struct direct dent; /* actual directory entry */
|
struct dirent dent; /* actual directory entry */
|
||||||
} DIR;
|
} DIR;
|
||||||
|
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ extern DIR *opendirw(const wchar_t *);
|
|||||||
#else
|
#else
|
||||||
extern DIR *opendir(const char *);
|
extern DIR *opendir(const char *);
|
||||||
#endif
|
#endif
|
||||||
extern struct direct *readdir(DIR *);
|
extern struct dirent *readdir(DIR *);
|
||||||
extern long telldir(DIR *);
|
extern long telldir(DIR *);
|
||||||
extern void seekdir(DIR *, long);
|
extern void seekdir(DIR *, long);
|
||||||
extern int closedir(DIR *);
|
extern int closedir(DIR *);
|
||||||
|
@@ -124,7 +124,7 @@ closedir(DIR *p)
|
|||||||
* standard "." and ".." entries. Many applications do assume
|
* standard "." and ".." entries. Many applications do assume
|
||||||
* this anyway, so we simply fake these entries.
|
* this anyway, so we simply fake these entries.
|
||||||
*/
|
*/
|
||||||
struct direct *
|
struct dirent *
|
||||||
readdir(DIR *p)
|
readdir(DIR *p)
|
||||||
{
|
{
|
||||||
FINDATA *ffp;
|
FINDATA *ffp;
|
||||||
|
Reference in New Issue
Block a user