mirror of
https://github.com/git/git.git
synced 2026-02-19 22:32:41 +00:00
Win32 dirent: remove unused dirent.d_reclen member
Remove the union around dirent.d_type and the unused dirent.d_reclen member (which was necessary for compatibility with the MinGW dirent runtime, which is no longer used). Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
7f872520b6
commit
c47e0760e9
@@ -10,10 +10,7 @@ typedef struct DIR DIR;
|
||||
|
||||
struct dirent {
|
||||
char d_name[FILENAME_MAX]; /* File name. */
|
||||
union {
|
||||
unsigned short d_reclen; /* Always zero. */
|
||||
unsigned char d_type; /* Reimplementation adds this */
|
||||
};
|
||||
unsigned char d_type; /* file type to prevent lstat after readdir */
|
||||
};
|
||||
|
||||
DIR *opendir(const char *dirname);
|
||||
|
||||
Reference in New Issue
Block a user