32x: drc: new smc handling, write handlers adjusted.
[picodrive.git] / platform / common / posix.h
... / ...
CommitLineData
1/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
2#if defined(__linux__) || defined(__MINGW32__)
3
4#include <dirent.h>
5#include <unistd.h>
6#include <sys/stat.h>
7#include <sys/types.h>
8
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
17#else
18
19#error "must provide posix"
20
21#endif
22
23