diff options
Diffstat (limited to '')
-rw-r--r-- | win32/dirent.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/win32/dirent.h b/win32/dirent.h new file mode 100644 index 000000000..4e7971ef6 --- /dev/null +++ b/win32/dirent.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef DIRENT_H | ||
2 | #define DIRENT_H | ||
3 | |||
4 | typedef struct DIR DIR; | ||
5 | |||
6 | #define DT_UNKNOWN 0 | ||
7 | #define DT_DIR 1 | ||
8 | #define DT_REG 2 | ||
9 | #define DT_LNK 3 | ||
10 | |||
11 | struct dirent { | ||
12 | unsigned char d_type; | ||
13 | char d_name[PATH_MAX]; // file name | ||
14 | }; | ||
15 | |||
16 | DIR *opendir(const char *dirname); | ||
17 | struct dirent *readdir(DIR *dir); | ||
18 | int closedir(DIR *dir); | ||
19 | |||
20 | #endif /* DIRENT_H */ | ||