diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-11-09 14:49:02 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-11-09 14:49:02 +0200 |
commit | 0b9de7cd600054dfbe6252b73995302200b8597e (patch) | |
tree | 3561fd8af235fb8b5c7a6291adceb427024bfae9 /nt | |
parent | f5441ba43c16303b129192504a0731a0ee0df47e (diff) | |
download | emacs-0b9de7cd600054dfbe6252b73995302200b8597e.tar.gz |
Dirent functions and directory-files are converted and work.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/inc/dirent.h | 2 | ||||
-rw-r--r-- | nt/inc/ms-w32.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/nt/inc/dirent.h b/nt/inc/dirent.h index 328635c4853..88f35bf16a9 100644 --- a/nt/inc/dirent.h +++ b/nt/inc/dirent.h @@ -40,7 +40,7 @@ struct dirent /* data from readdir() */ __int64 d_time_write; _fsize_t d_size; #endif - char d_name[MAXNAMLEN+1]; /* name of file */ + char d_name[MAXNAMLEN * 4 + 1]; /* name of file */ }; typedef struct diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index 6ecafe46d7a..3691b303b80 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -224,6 +224,14 @@ extern struct tm * sys_localtime (const time_t *); #define strerror sys_strerror #undef unlink #define unlink sys_unlink +#undef opendir +#define opendir sys_opendir +#undef closedir +#define closedir sys_closedir +#undef readdir +#define readdir sys_readdir +#undef seekdir +#define seekdir sys_seekdir /* This prototype is needed because some files include config.h _after_ the standard headers, so sys_unlink gets no prototype from stdio.h or io.h. */ |