summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/dirent.h
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2003-06-18 13:54:47 +0000
committerEarnie Boyd <earnie@users.sf.net>2003-06-18 13:54:47 +0000
commit2302957c535e3507b5c8920ab93c3dea7bf82f4a (patch)
treee0c2db3abe41b5ea1da8bd3fa20b3bfcdf3745da /winsup/mingw/include/dirent.h
parent1c906df21f516f84d9427d0d15205bbc7aac7f2d (diff)
downloadcygnal-2302957c535e3507b5c8920ab93c3dea7bf82f4a.tar.gz
cygnal-2302957c535e3507b5c8920ab93c3dea7bf82f4a.tar.bz2
cygnal-2302957c535e3507b5c8920ab93c3dea7bf82f4a.zip
* include/dirent.h (dirent): Make d_name and array instead of a pointer.
* mingwex/dirent.c: Modifications througout to fill d_name array. * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and libmsvcr71, including debug versions. (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
Diffstat (limited to 'winsup/mingw/include/dirent.h')
-rw-r--r--winsup/mingw/include/dirent.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/mingw/include/dirent.h b/winsup/mingw/include/dirent.h
index 5a9246a4a..4e787d841 100644
--- a/winsup/mingw/include/dirent.h
+++ b/winsup/mingw/include/dirent.h
@@ -42,9 +42,7 @@ struct dirent
long d_ino; /* Always zero. */
unsigned short d_reclen; /* Always zero. */
unsigned short d_namlen; /* Length of name in d_name. */
- char* d_name; /* File name. */
- /* NOTE: The name in the dirent structure points to the name in the
- * finddata_t structure in the DIR. */
+ char d_name[FILENAME_MAX]; /* File name. */
};
/*
@@ -92,7 +90,7 @@ struct _wdirent
long d_ino; /* Always zero. */
unsigned short d_reclen; /* Always zero. */
unsigned short d_namlen; /* Length of name in d_name. */
- wchar_t* d_name; /* File name. */
+ wchar_t d_name[FILENAME_MAX]; /* File name. */
/* NOTE: The name in the dirent structure points to the name in the * wfinddata_t structure in the _WDIR. */
};