mirror of https://github.com/MidnightCommander/mc
* fs.h [_MSC_VER]: Use dirent provided by glib.
This commit is contained in:
parent
d99d279148
commit
af3bb307d1
|
@ -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.
|
||||
|
||||
|
|
4
src/fs.h
4
src/fs.h
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue