From 9eec22cda1e4bf3029b3d8512ea1cb61f57b7465 Mon Sep 17 00:00:00 2001 From: furunkel Date: Mon, 1 Jun 2015 21:16:25 +0200 Subject: [PATCH] Add missing declarations --- src/Win/dirent.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;