bugfix
[picodrive.git] / platform / common / posix.h
CommitLineData
cc33f567 1/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
823b9004 2#if defined(__linux__) || defined(__MINGW32__)
713c9224 3
4#include <dirent.h>
5#include <unistd.h>
cc33f567 6#include <sys/stat.h>
7#include <sys/types.h>
713c9224 8
823b9004 9#ifdef __MINGW32__
10#warning hacks!
11#define mkdir(pathname,mode) mkdir(pathname)
12#define d_type d_ino
13#define DT_REG 0
14#define DT_DIR 0
15#endif
16
713c9224 17#else
18
cc33f567 19#error "must provide posix"
713c9224 20
21#endif
22
23