mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add missing declarations
This commit is contained in:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user