Add missing declarations

This commit is contained in:
furunkel
2015-06-01 21:16:25 +02:00
parent 5542f7b0fc
commit 9eec22cda1
+7 -1
View File
@@ -8,7 +8,6 @@
*/
#include "dirent.h"
#include <errno.h>
#include <io.h> /* _findfirst and _findnext set errno iff they return -1 */
#include <stdlib.h>
@@ -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;