diff --git a/src/Win/dirent.c b/src/Win/dirent.c index 12a2547bf..98728bcf7 100644 --- a/src/Win/dirent.c +++ b/src/Win/dirent.c @@ -8,7 +8,6 @@ */ -#include "dirent.h" #include #include /* _findfirst and _findnext set errno iff they return -1 */ #include @@ -21,6 +20,11 @@ extern "C" typedef ptrdiff_t handle_type; /* C99's intptr_t not sufficiently portable */ +struct dirent +{ + char *d_name; +}; + struct DIR { handle_type handle; /* -1 for failed rewind */ @@ -29,6 +33,8 @@ struct DIR char *name; /* null-terminated char string */ }; +typedef struct DIR DIR; + DIR *opendir(const char *name) { DIR *dir = 0;