* fs.h [_MSC_VER]: Use dirent provided by glib.

This commit is contained in:
Pavel Roskin 2002-01-21 23:09:07 +00:00
parent d99d279148
commit af3bb307d1
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2002-01-21 Pavel Roskin <proski@gnu.org>
* fs.h [_MSC_VER]: Use dirent provided by glib.
* global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
timeval.

View File

@ -19,6 +19,10 @@
# include <dirent.h>
# define NLENGTH(dirent) (strlen ((dirent)->d_name))
# define DIRENT_LENGTH_COMPUTED 1
#elif defined(_MSC_VER)
/* dirent provided by glib */
# define NLENGTH(dirent) (strlen ((dirent)->d_name))
# define DIRENT_LENGTH_COMPUTED 1
#else
# define dirent direct
# define NLENGTH(dirent) ((dirent)->d_namlen)