1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-12-27 20:29:43 +00:00
perfect6502/readdir.h
2010-09-22 10:05:49 +00:00

28 lines
374 B
C

#ifndef READDIR_H_INCLUDED
#define READDIR_H_INCLUDED
#include <sys/types.h>
#ifdef _WIN32
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
struct dirent
{
char d_name[MAX_PATH];
};
typedef struct dir_private DIR;
DIR *opendir(const char *name);
struct dirent *readdir(DIR *dir);
int closedir(DIR *dir);
#else
#include <dirent.h>
#endif
#endif /* READDIR_H_INCLUDED */