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> Signed-off-by: Stepan Kasal <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karsten Blees committed Jan 7, 2011 at 17:38 UTC b0601e6564061aa21699ee0a523e969c228cb1b4
1 file changed +1 -4
compat/win32/dirent.h
+1 -4
@@ -10,10 +10,7 @@ typedef struct DIR DIR;
10
11 struct dirent {
12 char d_name[FILENAME_MAX]; /* File name. */
13 - union {
14 - unsigned short d_reclen; /* Always zero. */
15 - unsigned char d_type; /* Reimplementation adds this */
16 - };
13 + unsigned char d_type; /* file type to prevent lstat after readdir */
14 };
15
16 DIR *opendir(const char *dirname);