refactor plat.h, add gamma
[libpicofe.git] / posix.h
CommitLineData
f15ca4db 1/* define POSIX stuff: dirent, scandir, getcwd, mkdir */
8ced8d2b 2#if defined(__linux__) || defined(__MINGW32__)
049a6b3e 3
4#include <dirent.h>
5#include <unistd.h>
f15ca4db 6#include <sys/stat.h>
7#include <sys/types.h>
049a6b3e 8
8ced8d2b 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
049a6b3e 17#else
18
f15ca4db 19#error "must provide posix"
049a6b3e 20
21#endif
22
23