1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-06-01 10:41:28 +00:00
perfect6502/cbmbasic/readdir.h
Michael Steil 3e60b6dd44 cleanup: moved cbmbasic and apple1basic demos into subdirectories
* also changed "clang" to "cc"
* enabled optimizations for 64 bit (it's 10 years later!)
* updated README to reflect CPU speed in 2020 (5x faster than 2014!)
* added benchmarking instructions to README
2020-06-04 19:32:59 +02: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 */